/* PRECI eCards – Grundgestaltung nach preci.expert-CI. */

@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/SourceSans3.ttf") format("truetype");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--pec-blau: #005678;
	--pec-orange: #f28b00;
	--pec-gruen: #006f43;
	--pec-grau: #888888;
	/* Abgeleitete Werte: Textfarben mit ausreichendem Kontrast (WCAG AA) auf Weiß. */
	--pec-text: #1f2a30;
	--pec-text-leise: #4a5560;
	--pec-flaeche: #ffffff;
	--pec-flaeche-fuss: #f4f6f7;
	--pec-linie: #d9dee1;
	--pec-breite: 1100px;
	--pec-rand: 16px;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--pec-flaeche);
	color: var(--pec-text);
	font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-wrap: break-word;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--pec-blau);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--pec-gruen);
}

:focus-visible {
	outline: 3px solid var(--pec-blau);
	outline-offset: 2px;
	border-radius: 2px;
}

h1,
h2,
h3,
h4 {
	color: var(--pec-blau);
	line-height: 1.25;
	font-weight: 600;
	margin: 1.5em 0 0.5em;
}

h1 {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	margin-top: 0;
}

/* Rahmen: schmaler Inhaltsbereich, 16px Rand, kein horizontales Scrollen. */
.pec-rahmen {
	width: 100%;
	max-width: calc(var(--pec-breite) + 2 * var(--pec-rand));
	margin: 0 auto;
	padding: 0 var(--pec-rand);
}

/* Skip-Link */
.pec-skip-link {
	position: absolute;
	left: var(--pec-rand);
	top: -100px;
	z-index: 1000;
	padding: 0.5em 1em;
	background: var(--pec-blau);
	color: #ffffff;
	text-decoration: none;
}

.pec-skip-link:focus {
	top: var(--pec-rand);
	color: #ffffff;
}

/* Kopf */
.pec-kopf {
	border-bottom: 4px solid var(--pec-orange);
	padding: 1.25rem 0;
}

.pec-marke {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	color: var(--pec-blau);
	text-decoration: none;
}

.pec-logo {
	display: block;
	height: 48px;
	width: auto;
	max-width: 100%;
}

.pec-name {
	font-size: 1.25rem;
	font-weight: 600;
}

.pec-slogan {
	margin: 0.4rem 0 0;
	color: var(--pec-text-leise);
}

/* Inhalt */
.pec-inhalt {
	flex: 1 0 auto;
	padding: 2.5rem 0 3rem;
}

.pec-inhalt:focus {
	outline: none;
}

.pec-artikel + .pec-artikel {
	margin-top: 3rem;
}

.pec-text > :first-child {
	margin-top: 0;
}

.pec-knopf {
	display: inline-block;
	padding: 0.6em 1.2em;
	background: var(--pec-blau);
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
}

.pec-knopf:hover {
	background: var(--pec-gruen);
	color: #ffffff;
}

/* Fuß */
.pec-fuss {
	background: var(--pec-flaeche-fuss);
	border-top: 1px solid var(--pec-linie);
	padding: 2rem 0 1.5rem;
	font-size: 0.95rem;
	color: var(--pec-text-leise);
}

.pec-fuss-mandant {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--pec-linie);
}

.pec-fuss-titel {
	font-size: 1rem;
	margin: 0 0 0.4rem;
}

.pec-fuss-mandant p {
	margin: 0;
}

.pec-powered {
	margin: 0;
}

.pec-trenner {
	color: var(--pec-grau);
	padding: 0 0.25em;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}
