/**
 * @file /assets/css/layout.css
 * @date 2026-11-13
 * @author Milos Mandic <milos.mandic@filterverlag.de> - https://www.filterverlag.de
 */

/* codeDESIGN - layout.css */
@charset "utf-8";

@font-face {
	font-family: 'Open Sans';
	src: url('/assets/fonts/open-sans-latin.woff2') format('woff2');
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Work Sans';
	src: url('/assets/fonts/work-sans-latin.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
:root {
	color-scheme: light;
	--accent: #0079ac;
	--ink: #242424;
	--body: #444444;
}
* {
	box-sizing: border-box;
}
html {
	background: #ffffff;
}
body {
	margin: 0px 0px 0px 0px;
	padding: 40px 40px 40px 40px;
	display: grid;
	font: 400 16px/1.6 'Open Sans', Arial, sans-serif;
	color: var(--body);
	min-height: 100vh;
	min-height: 100svh;
	place-items: center;
	letter-spacing: 0;
}
div.page {
	width: min(100%, 1120px);
}
a {
	color: inherit;
	text-underline-offset: 4px;
}
a:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 5px;
}



/* NEMAYER BRAND AND MAINTENANCE */
main.hero {
	background: #ffffff;
	position: relative;
}
header.brand_header {
	border-bottom: 3px solid #ee8000;
	padding: 0px 0px 18px 0px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}
header.brand_header img {
	width: 252px;
	height: auto;
	display: block;
}
div.brand_note {
	font-size: 14px;
	text-align: right;
}
div.brand_note strong {
	display: block;
	color: var(--ink);
}
section.intro {
	padding: 24px 0px 8px 0px;
	text-align: center;
}
div.maintenance_label {
	margin: 0px 0px 6px 0px;
	font-size: 14px;
	font-weight: 700;
	color: #9b4b00;
}
section.intro h1 {
	margin: 0px 0px 10px 0px;
	font: 700 38px/1.15 'Work Sans', Arial, sans-serif;
	color: var(--ink);
}
div.maintenance_text {
	width: min(100%, 680px);
	margin: 0px auto 0px auto;
	text-wrap: pretty;
}



/* NEMAYER PRODUCT EXAMPLES */
section.products {
	padding: 0px 0px 24px 0px;
}
div.product_grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0px, 1fr));
	gap: 32px;
}
figure.product {
	margin: 0px 0px 0px 0px;
	text-align: center;
}
figure.product img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 1;
	object-fit: contain;
}
figure.product h2 {
	margin: 0px 0px 2px 0px;
	font: 650 18px/1.4 'Work Sans', Arial, sans-serif;
	color: var(--ink);
	overflow-wrap: anywhere;
}
figure.product figcaption div {
	font-size: 13px;
}



/* NEMAYER CONTACT */
section.contact {
	background: var(--accent);
	padding: 20px 32px 20px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #ffffff;
	gap: 20px 32px;
}
section.contact h2 {
	margin: 0px 0px 3px 0px;
	font: 650 20px/1.4 'Work Sans', Arial, sans-serif;
}
section.contact div {
	font-size: 14px;
}
div.contact_links {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
}
section.contact a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	text-decoration: none;
}
section.contact a.phone {
	font: 600 28px/1.25 'Work Sans', Arial, sans-serif;
	min-height: 44px;
	white-space: nowrap;
}
section.contact a:hover {
	text-decoration: underline;
}



/* NEMAYER FOOTER */
footer.footer {
	border-top: 1px solid #ededed;
	padding: 18px 0px 0px 0px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	gap: 16px 32px;
}
footer.footer address {
	font-style: normal;
}
footer.footer strong {
	font-weight: 600;
	color: var(--ink);
}
footer.footer nav {
	display: flex;
	gap: 0px 24px;
	flex-wrap: wrap;
}
footer.footer nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
}
footer.footer nav a:hover {
	text-decoration: underline;
}
div.copyright {
	font-size: 11px;
	color: #666666;
}



/* NEMAYER LEGAL PAGES */
div.legal-page {
	max-width: 800px;
}
header.legal-header {
	border-bottom: 3px solid var(--accent);
	padding: 0px 0px 16px 0px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
header.legal-header img {
	width: 180px;
	height: auto;
	display: block;
}
header.legal-header a {
	font-size: 12px;
}
section.legal-content {
	padding: 20px 0px 32px 0px;
	font-size: 12px;
	overflow-wrap: anywhere;
}
section.legal-content h1 {
	font: 700 18px/1.4 'Work Sans', Arial, sans-serif;
	color: var(--accent);
}
div.legal_text {
	white-space: pre-wrap;
}



/* NEMAYER LEGAL MODAL */
html.legal_modal_open {
	overflow: hidden;
	scrollbar-gutter: stable;
}
dialog.legal_modal {
	background: #ffffff;
	width: min(768px, calc(100% - 32px));
	border: 0;
	border-radius: 0;
	margin: auto;
	padding: 0px 0px 0px 0px;
	overflow: hidden;
	color: var(--body);
	max-width: none;
	max-height: min(90vh, 896px);
	max-height: min(90dvh, 896px);
}
dialog.legal_modal[open] {
	display: flex;
	flex-direction: column;
}
dialog.legal_modal::backdrop {
	background: rgba(0, 0, 0, .6);
}
dialog.legal_modal header.legal_modal_header {
	border-bottom: 2px solid var(--accent);
	padding: 12px 16px 12px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex: 0 0 auto;
	gap: 16px;
}
dialog.legal_modal h2.legal_modal_title {
	margin: 0px 0px 0px 0px;
	font: 700 18px/1.4 'Work Sans', Arial, sans-serif;
	color: var(--accent);
}
dialog.legal_modal button.legal_modal_close {
	background: transparent;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 0;
	padding: 0px 0px 0px 0px;
	font: 400 28px/1 Arial, sans-serif;
	color: var(--ink);
	cursor: pointer;
	flex: 0 0 44px;
}
dialog.legal_modal button.legal_modal_close:hover {
	background: #f3f3f3;
}
dialog.legal_modal button.legal_modal_close:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -4px;
}
dialog.legal_modal div.legal_modal_body {
	padding: 20px 24px 24px 24px;
	overflow: auto;
	font: 400 12px/1.6 'Open Sans', Arial, sans-serif;
	min-height: 0;
	overscroll-behavior: contain;
}
dialog.legal_modal section.legal-content {
	padding: 0px 0px 0px 0px;
}
dialog.legal_modal section.legal-content > :first-child {
	margin-top: 0;
}
dialog.legal_modal section.legal-content > :last-child {
	margin-bottom: 0;
}



/* NEMAYER RESPONSIVE LAYOUT */
@media (max-width: 760px) {

	body {
		padding: 20px 20px 20px 20px;
	}
	header.brand_header img {
		width: 210px;
	}
	div.brand_note {
		font-size: 12px;
	}
	section.intro h1 {
		font-size: 30px;
	}
	div.product_grid {
		gap: 12px;
	}
	figure.product h2 {
		font-size: 14px;
	}
	figure.product figcaption div {
		display: none;
	}
	section.contact {
		padding: 22px 24px 22px 24px;
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}
	section.contact a.phone {
		font-size: 24px;
	}
	footer.footer {
		align-items: flex-start;
		gap: 6px;
		flex-direction: column;
	}
	footer.footer nav {
		margin-left: auto;
	}
	div.legal-page footer.footer nav {
		margin-left: 0;
	}

}
@media (max-width: 430px) {

	header.brand_header {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}
	div.brand_note {
		text-align: left;
	}
	div.brand_note strong {
		display: none;
	}
	section.contact a.phone {
		font-size: 21px;
	}
	section.intro h1 {
		font-size: 28px;
	}

}
