/* meenzdog – base layer (W4): container, typography, links, lists, blockquote,
   forms, buttons, skip link. Every value measured on the Salient build of
   meenzdog.de (scratchpad/w4/sal-*.json, Salient css/build + customizer CSS),
   see docs/BUILD.md. Fonts: inc/51-fonts.php. */

/* ---- Container: Salient .container = max 1425px, 70/46/23px side gutters, centred ---- */
:root {
	--nova-container: 100%;          /* the header (W1) spans the viewport like Salient's */
	--nova-gutter: var(--ml-gutter);
}
.nova-container {
	max-width: var(--ml-container-max);
	padding-inline: var(--ml-gutter);
}

/* Salient .container-wrap: 40px above the page content, nothing below (the footer global
   section follows the last row directly). Transparent-header pages start at y=0. */
.nova-builder-page { padding-top: 0; padding-bottom: 0; }
body.ml-header-solid .nova-builder-page { padding-top: var(--ml-content-pad-y); }

/* Non-builder pages (sitemap, Woo legal pages): Salient renders them in a plain
   .container.main-content > .row without a sidebar. */
.nova-container.nova-layout { display: block; padding-block: var(--ml-content-pad-y) 0; }
.nova-container.nova-layout .nova-layout__sidebar { display: none; }
.nova-layout__content { max-width: none; }
.nova-entry__content > :first-child { margin-top: 0; }

/* ---- Typography ---- */
body {
	font-family: 'Open Sans', Helvetica, sans-serif;
	font-size: 14px;
	line-height: 26px;
	font-weight: 400;
	color: #000;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: 'Open Sans', Helvetica, sans-serif;
	font-weight: 600;
	color: #000;
	margin: 0 0 7px;
	letter-spacing: 0;
	text-transform: none;
}
/* Customizer CSS (post 1777): Lora on h1–h3 — never loaded as a webfont on Salient,
   so the browser's default serif renders. Declared the same way here. */
h1, h2, h3 { font-family: "Lora", serif; }
/* Salient has no responsive heading scale (no explicit size → no redux percentage). */
/* The parent's dynamic CSS omits "transform: none" and an empty letter-spacing, so its h6
   defaults (uppercase, .08em) would leak through. */
:root { --nova-h6-transform: none; --nova-h6-spacing: normal; }

p { margin: 0; padding-bottom: 1.5em; }  /* 21px at 14px */
p:last-child { padding-bottom: 0; }
strong, b { font-weight: 700; }
small { font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--ml-border, #e5e5e5); margin: 0 0 30px; }

/* Salient: ol, ul { margin-left: 30px; margin-bottom: 30px } ul li { list-style: disc outside }.
   Scoped to content containers so the header / Woo markup (W1, W2) keep their own resets. */
.nova-entry__content :is(ol, ul),
.nova-builder-page > :not(.nb-el, .nb-global-section) :is(ol, ul),
.ml-text :is(ol, ul),
.ml-blog :is(ol, ul) { margin: 0 0 30px 30px; padding: 0; }
.nova-entry__content ul li,
.nova-builder-page > :not(.nb-el, .nb-global-section) ul li,
.ml-text ul li,
.ml-blog ul li { list-style: disc outside; }
.nova-entry__content ol li,
.nova-builder-page > :not(.nb-el, .nb-global-section) ol li,
.ml-text ol li,
.ml-blog ol li { list-style: decimal outside; }
.nova-entry__content li :is(ol, ul),
.nova-builder-page > :not(.nb-el, .nb-global-section) li :is(ol, ul),
.ml-text li :is(ol, ul) { margin-bottom: 0; }

/* Salient blockquote (skin material + dynamic typography): Castoro 22/32, 4px left rule. */
blockquote {
	position: relative;
	font-family: 'Castoro', serif;
	font-size: 22px;
	line-height: 32px;
	font-weight: 400;
	letter-spacing: .5px;
	margin: 0 0 30px;
	padding: 0 0 0 1.8em;
	border: 0;
	background: none;
}
blockquote::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-left: 4px solid rgba(0, 0, 0, .1);
}

/* ---- Links: accent, no underline, 0.3s colour transition, hover inherits the text colour ---- */
a { color: var(--ml-accent); transition: color .3s ease; }
a, a:hover, a:focus { text-decoration: none; }
a:hover { color: inherit; }

/* ---- Forms (Salient form-style "default"). Fluent Forms fields keep the plugin's own
   padding/radius/colour on Salient (.ff-default .ff-el-form-control outranks input[type]);
   only the 1px #aaa border of .container-wrap input[type=…] gets through to the inputs. ---- */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="number"], input[type="search"], input[type="password"], input[type="date"],
textarea, select {
	background: #fff;
	border: 1px solid #aaa;
	border-radius: 4px;
	box-shadow: none;
	color: #555;
	font-family: inherit;
	font-size: 16px;
	line-height: 1em;
	padding: 15px;
	width: 100%;
	max-width: 100%;
	transition: border-color .2s ease;
}
textarea { line-height: 1.5; min-height: 120px; }
input[type="text"]:hover, input[type="email"]:hover, input[type="url"]:hover, input[type="tel"]:hover,
input[type="number"]:hover, input[type="search"]:hover, input[type="password"]:hover,
textarea:hover, select:hover { border-color: #0a0a0a; }
.frm-fluent-form input.ff-el-form-control { border: 1px solid #aaa; }
input:focus, textarea:focus, select:focus {
	border-color: var(--ml-accent);
	outline: none;
	box-shadow: none;
}

/* Salient base submit (used by widgets/comments): dark, 7×11, radius 2. */
button[type="submit"], input[type="submit"] {
	background: #333;
	color: #fff;
	border: 0;
	border-radius: 2px;
	padding: 7px 11px;
	font-family: 'Open Sans', Helvetica, sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transform: none;
	filter: none;
	box-shadow: none;
}
button[type="submit"]:hover, input[type="submit"]:hover { background: #333; color: #fff; filter: none; transform: none; }

/* Fluent Forms submit (measured on /kontakt): Work Sans 16/1.2 500 capitalize, 15×35, pill, accent. */
.frm-fluent-form .ff-btn-submit,
.frm-fluent-form button[type="submit"].ff-btn-submit {
	background: var(--ml-accent);
	color: #fff;
	border: 1px solid transparent;
	border-radius: 200px;
	padding: 15px 35px;
	font-family: 'Work Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: capitalize;
	letter-spacing: 0;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.frm-fluent-form .ff-btn-submit:hover { background: var(--ml-accent); color: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .1); }

/* Salient .nectar-button (button-styling rounded_shadow): Work Sans 500 14/20, pill, accent. */
.ml-btn, a.ml-btn, .ml-btn:visited {
	display: inline-block;
	background: var(--ml-accent);
	color: #fff;
	border: 0;
	border-radius: 200px;
	padding: 15px 44px 15px 46px;
	font-family: 'Work Sans', sans-serif;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	text-transform: capitalize;
	letter-spacing: 0;
	transition: box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}
.ml-btn:hover, a.ml-btn:hover { color: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .1); }

/* ---- Skip link (parent prints it; styled in the site's accent) ---- */
.skip-link:focus {
	top: 0 !important;
	left: 0 !important;
	padding: 12px 20px;
	background: var(--ml-accent);
	color: #fff;
	border-radius: 0 0 6px 0;
	box-shadow: none;
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
}
#nova-content:focus { outline: none; }

/* Salient: img { max-width: 100%; height: auto } (content images stay inline). */
img { max-width: 100%; height: auto; }

/* Pages flagged as builder pages whose content is plain (no nb_row), e.g. the sitemap
   ([kwayy-sitemap] → Rank Math HTML sitemap): Salient wraps them in .container.main-content.
   Every non-builder child of .nova-builder-page gets the same 1425px/70px container. */
.nova-builder-page > :where(:not(.nb-el, .nb-global-section, style, script, link)) {
	max-width: var(--ml-container-max);
	margin-inline: auto;
	padding-inline: var(--ml-gutter);
	box-sizing: border-box;
}

/* ---- Salient fancy select (select2 on every <select>, measured on /kontakt at 1440):
   wrapper 12px above, selection 51px: 15px padding, 1px #aaa border, radius 4, white. ---- */
.fancy-select-wrap { padding-top: 12px; position: relative; }
.fancy-select-wrap .select2-container { width: 100% !important; }
.fancy-select-wrap .select2-container--default .select2-selection--single {
	height: auto;
	padding: 15px 0;
	margin-bottom: -4px;
	background: #fff;
	border: 1px solid #aaa;
	border-radius: 4px;
	outline: none;
}
.fancy-select-wrap .select2-container--default .select2-selection--single:hover { border-color: #0a0a0a; }
.fancy-select-wrap .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--ml-accent); }
.fancy-select-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0 40px 0 15px;
	font-size: 16px;
	line-height: 19px;
	color: #000;
}
.fancy-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; right: 10px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ml-accent); }
.select2-dropdown { border-color: #aaa; border-radius: 4px; }

/* Salient style.css: html{max-width:100%;overflow-y:scroll;overflow-x:hidden} – without it any child that pokes out
   (zoom image of the product gallery, carousels) widens the phone layout viewport. */
html { max-width: 100%; overflow-y: scroll; overflow-x: hidden; }
