/*
 * restore.css
 * Small additions for the static reconstruction of fdg-freiberg.de.
 * The original child-theme stylesheet (cenote-child/style.css) and the
 * self-hosted Kirki font files were not archived; everything else comes from
 * the archived pages or the official Cenote theme.
 */

/* Logo: the 2016 logo file replaces the 2021 upload; keep it at header size */
.site-branding .custom-logo {
	max-height: 140px;
	width: auto;
	height: auto;
}

/* Images in content blocks should never overflow their column */
.entry-content img {
	max-width: 100%;
	height: auto;
}
.entry-content .wp-block-image img[style*="width"] {
	width: 100% !important;
	height: auto !important;
}

/* Image tiles on the home page: uniform crop so the three captions line up */
.home .entry-content .wp-block-columns:first-of-type .wp-block-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
}

/* Contact page: the FDG business card stands in for the missing stock header photo;
   show it at its natural size instead of stretching it across the column */
.entry-content .wp-block-image img[src$="visitenkarte.jpg"] {
	width: 620px !important;
	max-width: 100%;
	height: auto !important;
	display: block;
	margin: 0 auto;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Quality page: certificate images share one 8:5 frame (the original 400x250 slots) */
.page-id-16 .entry-content .wp-block-image img {
	aspect-ratio: 8 / 5;
	object-fit: contain;
	width: 100%;
	background: #fff;
}

/* Grey contact/footer block that sits at the end of every page */
.entry-content .wp-block-columns.has-background {
	padding: 2em 2.375em;
	margin-top: 2.5em;
	line-height: 1.6;
}
.entry-content .wp-block-columns.has-background p { margin-bottom: 1em; }
.entry-content .wp-block-columns.has-white-color a.footernew,
.entry-content .wp-block-columns.has-white-color a.footernew:visited { color: #fff; }
.entry-content .wp-block-columns.has-white-color a.footernew:hover { color: red; }

/* Google Maps embed on the contact page */
.entry-content iframe {
	width: 100%;
	min-height: 320px;
	border: 0;
}

/* Contact Form 7 markup without the plugin stylesheet */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 0.25em;
}
.wpcf7 .wpcf7-list-item { margin: 0 0 0.5em; display: inline-block; }
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; }
.wpcf7-response-output:empty { display: none; }
.wpcf7-response-output {
	margin: 1em 0;
	padding: 0.75em 1em;
	border: 2px solid #777;
	font-size: 0.95em;
}

/* Replacement for the missing "variocont IT Services" logo (partner page) */
.restored-textlogo {
	display: inline-block;
	padding: 0.4em 0.9em;
	border: 2px solid currentColor;
	font-family: Catamaran, sans-serif;
	font-weight: 700;
	font-size: 1.4em;
	letter-spacing: 0.02em;
	text-transform: lowercase;
}
.restored-textlogo small { font-size: 0.6em; font-weight: 400; text-transform: none; }

/* Replacement for the missing second DIN 77200 seal (quality page) */
.restored-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	aspect-ratio: 8 / 5;
	width: 100%;
	box-sizing: border-box;
	border: 3px solid #b5b5b5;
	color: #333;
	text-align: center;
	line-height: 1.2;
	font-family: Catamaran, sans-serif;
	padding: 1em;
}
.restored-badge strong { font-size: 2.6em; letter-spacing: 0.04em; }
.restored-badge span:first-child { font-size: 1.1em; font-weight: 700; color: #777; }
.restored-badge span:last-child { font-size: 0.9em; margin-top: 0.4em; }

/* Small screens: stack the WordPress columns (core rule uses nowrap) */
@media (max-width: 781px) {
	.entry-content .wp-block-columns { flex-wrap: wrap !important; }
	.entry-content .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.entry-content .wp-block-columns.has-background { padding: 1.5em; }
}
