/*
Theme Name: 4U-Consult
Theme URI: https://4uconsult.de/
Author: 4U-Consult
Description: Leichte, barrierearme und datenschutzfreundliche Custom-Theme für 4U-Consult.
Version: 1.0.0
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: fouruconsult
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
	font-family: "Plus Jakarta Sans Local";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-variable.woff2") format("woff2");
}

:root {
	--fouru-navy: #09284d;
	--fouru-blue: #0877de;
	--fouru-blue-dark: #045dae;
	--fouru-cyan: #05a3d8;
	--fouru-text: #19263a;
	--fouru-muted: #5e6878;
	--fouru-line: #dbe5ef;
	--fouru-surface: #ffffff;
	--fouru-soft: #f5f8fc;
	--fouru-error: #b42318;
	--fouru-font: "Plus Jakarta Sans Local", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--fouru-container: 87.5rem;
	--fouru-gutter: clamp(1.25rem, 5vw, 4rem);
	--fouru-radius: 0.8rem;
	--fouru-shadow: 0 1.25rem 3.75rem rgba(12, 42, 78, 0.12);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	margin: 0;
	background: #ffffff;
	color: var(--fouru-text);
	font-family: var(--fouru-font);
	font-size: 1rem;
	font-synthesis: none;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

.fouru-icon {
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.fouru-icon--filled {
	fill: currentcolor;
	stroke: none;
}

.fouru-custom-icon {
	display: block;
	object-fit: contain;
}

button,
input,
textarea,
select {
	font: inherit;
}

a {
	color: var(--fouru-blue-dark);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--fouru-blue);
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 0.2rem solid #f0b429;
	outline-offset: 0.2rem;
}

::selection {
	background: var(--fouru-blue);
	color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0 0.65em;
	color: var(--fouru-navy);
	font-weight: 760;
	letter-spacing: -0.035em;
	line-height: 1.12;
}

p {
	margin-block: 0 1.2em;
}

.site-container {
	width: min(var(--fouru-container), calc(100% - (2 * var(--fouru-gutter))));
	margin-inline: auto;
}

.site-main,
.entry,
.entry-content {
	width: 100%;
	margin: 0;
}

.entry-content > * {
	margin-block: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 0.75rem;
	left: 0.75rem;
	display: block;
	width: auto;
	height: auto;
	padding: 0.8rem 1rem;
	clip: auto !important;
	border-radius: 0.35rem;
	background: #ffffff;
	box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
	color: var(--fouru-navy);
	font-weight: 750;
	text-decoration: none;
}

.default-page {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.default-page__inner {
	width: min(48rem, calc(100% - (2 * var(--fouru-gutter))));
	margin-inline: auto;
}

.default-page__title {
	font-size: clamp(2.25rem, 7vw, 4rem);
}

.not-found {
	display: grid;
	min-height: 65vh;
	place-items: center;
	padding: 3rem var(--fouru-gutter);
	text-align: center;
}

.not-found h1 {
	font-size: clamp(2.4rem, 8vw, 5rem);
}

.not-found a {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	padding: 0.7rem 1.2rem;
	border-radius: 0.55rem;
	background: var(--fouru-blue-dark);
	color: #ffffff;
	font-weight: 740;
	text-decoration: none;
}

/* Global footer; values are editable under “4U-Consult → Website-Einstellungen”. */
.site-footer {
	position: relative;
	z-index: 5;
	background: var(--fouru-navy);
	color: rgba(255, 255, 255, 0.86);
}

.site-footer__inner.site-container {
	display: grid;
	width: min(var(--fouru-container), calc(100% - 10rem));
	min-height: 5.5rem;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem 6.5rem;
	padding-block: 1rem;
}

.site-footer__logo {
	display: grid;
	width: 4rem;
	height: 4.35rem;
	place-items: center;
	flex: 0 0 auto;
}

.site-footer__logo img {
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}

.site-footer__copyright {
	margin: 0;
	font-size: 0.78rem;
}

.site-footer__legal {
	display: flex;
	align-items: center;
	gap: 0;
}

.site-footer__legal :is(a, button) {
	padding: 0.35rem 0.9rem;
	border: 0;
	background: transparent;
	color: #ffffff;
	font: inherit;
	font-size: 0.78rem;
	text-decoration: none;
}

.site-footer__legal > * + * {
	border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.site-footer__legal :is(a, button):hover {
	background: transparent;
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.site-footer__consent {
	cursor: pointer;
}

/* Keep the visual SCF previews as wide as the actual page. */
.editor-styles-wrapper {
	background: #ffffff;
	color: var(--fouru-text);
	font-family: var(--fouru-font);
}

.editor-styles-wrapper .wp-block[data-align="full"] {
	max-width: none;
}

.editor-styles-wrapper .wp-block-acf-block-preview {
	font-family: var(--fouru-font);
}

@media (max-width: 48rem) {
	.site-footer__inner.site-container {
		width: min(100% - 2.5rem, 40rem);
		grid-template-columns: auto 1fr;
		gap: 0.75rem 1.25rem;
		padding-block: 1.25rem;
	}

	.site-footer__copyright {
		grid-column: 1 / -1;
		grid-row: 2;
		text-align: center;
	}

	.site-footer__legal {
		grid-column: 2;
		grid-row: 1;
		justify-content: flex-end;
	}
}

@media (max-width: 32rem) {
	.site-footer__inner.site-container {
		display: flex;
		flex-direction: column;
		text-align: center;
	}

	.site-footer__logo {
		order: 1;
	}

	.site-footer__legal {
		order: 2;
		flex-wrap: wrap;
		justify-content: center;
	}

	.site-footer__legal :is(a, button) {
		padding-inline: 0.55rem;
		font-size: 0.7rem;
	}

	.site-footer__copyright {
		order: 3;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.site-footer {
		border-top: 1px solid #999999;
		background: #ffffff;
		color: #000000;
	}

	.site-footer__legal :is(a, button) {
		color: #000000;
	}

	.site-footer__consent,
	.fouru-consent {
		display: none !important;
	}
}
