/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

/* General styling for merkblatter custom post type */
.single-merkblaetter .entry-title {
	display: none!important;
}

body.single-merkblaetter .page-content, 
body.single-merkblaetter .entry-content {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.custom-pdf-container {
    margin: 40px auto 100px;
    max-width: 800px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.pdf-title {
    font-family: "Giga Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.pdf-download {
    font-size: 14px;
    font-weight: bold;
    color: #f9b233;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: inline-block;
    padding: 5px 15px 5px 10px;
    background: #FFFAF0;
    border-radius: 20px;
    text-decoration: none!important;
    transition: background-color 0.3s, color 0.3s;
    animation: fade-in 0.8s ease-in-out;
}

.pdf-download:hover {
    background: #f9b233;
    color: #fff;
}

/* Ordi-Infos Admin Styling */
.opening-hours-container {
            max-width: 600px;
            margin: 20px;
            background: #fff;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .opening-hours-container h1 {
            color: #23282d;
            border-bottom: 2px solid #eee;
            padding-bottom: 15px;
            margin-bottom: 20px;
        }
        .opening-hours-field {
            margin-bottom: 20px;
        }
        .opening-hours-field label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            color: #444;
        }
        .opening-hours-field input {
            width: 100%;
            padding: 8px;
            font-size: 14px;
            border: 1px solid #ddd;
            border-radius: 4px;
            transition: border-color 0.3s ease;
        }
        .opening-hours-field input:focus {
            border-color: #2271b1;
            box-shadow: 0 0 0 1px #2271b1;
            outline: none;
        }
        .opening-hours-submit {
            margin-top: 20px;
        }
        .opening-hours-submit .button-primary {
            padding: 8px 20px;
            height: auto;
            font-size: 14px;
        }

/* PDF Viewer Styling */
.pdf-viewer {
    overflow: hidden; /* Ensure no scrollbars or overflow outside container */
}

.pdf-frame-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 700px; /* Desktop height */
}

.pdf-frame-wrapper object {
    width: 100%;
    height: 100%;
    display: block;
    margin: auto;
    transition: transform 0.3s ease; /* Smooth scaling for adjustments */
    cursor: default; /* Indicate no zoom functionality */
}

@media screen and (max-width: 768px) {
    .pdf-frame-wrapper {
        height: auto; /* Adjust height for mobile */
        aspect-ratio: 1 / 1.414; /* Maintain proper A4 aspect ratio */
    }

    .pdf-frame-wrapper object {
        width: calc(100% - 20px); /* Ensure proportional scaling */
        max-width: 100%;
        height: auto;
        cursor: pointer; /* Indicate clickability on mobile */
    }
}

@media screen and (max-width: 480px) {
    .pdf-frame-wrapper {
        aspect-ratio: 1 / 1.414; /* Ensure proper proportions */
    }

    .pdf-frame-wrapper object {
        width: calc(100% - 20px);
        height: auto;
    }
}

/* Optional fade-in animation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staerk-list-item-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
	
	.list_item {
		background-color: #eeeeee;
		padding: 24px 48px;
		border-radius: 40px;
		font-family: "giga sans", Sans-serif;
		
		h3 {
			font-size: 32px;
			font-weight: bold;
			margin: 0;
			padding: 0;
			color: #191919;
		}
		
		p {
			font-size: 20px;
			margin: 0;
			margin-top: 10px;
			padding: 0;
			line-height: 24px;
			color: #191919;
		}
	}
}

@media screen and (max-width: 767px) {
	.staerk-list-item-wrapper {
		.list_item {
			padding: 24px;
			
			h3 {
				font-size: 20px;
				line-height: 24px;
			}
			
			p {
				font-size: 14px;
				line-height: 18px;
			}
		}
	}
}

.staerken-list-buttons {
	
	.elementor-shortcode {
		display: flex;
		align-items: center;
		gap: 15px;
		padding: 20px 0;
		
		.active {
				background-color: #F9B233;
			}
		
		.staerk-buttons-list {
			display: flex;
			align-items: center;
			gap: 15px;
			flex-wrap: wrap;
		}

		a {
			background-color: #eeeeee;
			padding: 15px;
			border-radius: 16px;
			font-weight: 700;
			font-family: "giga sans", sans-serif;
			color: #191919;
			font-size: 14px;
			
			&:hover {
				background-color: #F9B233;
			}
		}
	}
	
}

@media screen and (max-width: 1024px) {
	.staerken-list-buttons {
		.elementor-shortcode {
			flex-wrap: wrap;
		}
		
		a {
			font-size: 0.8em;
			line-height: 12px;
		}
	}
}

@media screen and (max-width: 767px) {
	.staerken-list-buttons {
		div {
			width: 100%;
		}
		.elementor-shortcode {
			.view-all-button {
				width: 100%;
				text-align: center;
				font-size: .7em;
			}
			
			.staerk-buttons-list {
				display: grid;
    			grid-template-columns: 1fr 1fr;
				gap: 5px;
				
				a {
					line-height: 1;
					font-size: 0.7em;
					text-align: center;
				}
			}
		}
	}
}

.staerken-archive-section {
	margin-bottom: 30px;
}

.e-loop-item:nth-child(2n + 1) {
	.staerken-archive-section {
	.e-con-inner {
		.e-con:nth-child(1) {
			order: 2;
		}
		.e-con:nth-child(2) {
			order: 1;
		}
	}
}
}
@media screen and (max-width: 500px) {
	.e-loop-item:nth-child(2n + 1) {
	.staerken-archive-section {
	.e-con-inner {
		.e-con:nth-child(1) {
			order: 1;
		}
		.e-con:nth-child(2) {
			order: 2;
		}
	}
}
}
}