/* ════════════════════════════════════════════════════════════════════
   BASE — Reset, Typografie, Grid, Animationen
   ════════════════════════════════════════════════════════════════════ */

/* ─── RESET (modernes, schlankes) ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ─── TYPOGRAPHY ──────────────────────────────────────────────────── */
html { font-size: 16px; }
body {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.15;
	color: var(--color-text);
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(28px, 6vw, 52px); }
h2 { font-size: clamp(20px, 4vw, 28px); }
h3 { font-size: clamp(17px, 2.6vw, 20px); }
h4 { font-size: 16px; }

p { line-height: 1.8; color: var(--color-text-soft); }

::selection { background: var(--color-accent); color: #fff; }

/* ─── FOCUS-RING (a11y) ───────────────────────────────────────────── */
:focus-visible {
	outline: 3px solid rgb(var(--color-main-rgb));
	outline-offset: 2px;
	border-radius: 4px;
}

/* ─── CONTAINER ───────────────────────────────────────────────────── */
.wh-container {
	width: 100%;
	max-width: var(--max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}
@media (min-width: 640px) {
	.wh-container { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 960px) {
	.wh-container { padding-left: 24px; padding-right: 24px; }
}

/* ─── GRID-HELPERS (Mobile-First) ─────────────────────────────────── */
.g2, .g3, .g4 { display: grid; gap: 14px; }
.g2, .g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr 1fr; gap: 12px; }

.gs { display: grid; grid-template-columns: 1fr; gap: 28px; }
.sb { order: 1; }

@media (min-width: 640px) {
	.g2 { grid-template-columns: repeat(2, 1fr); }
	.g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
	.g3 { grid-template-columns: repeat(3, 1fr); }
	.gs { grid-template-columns: 1fr 280px; }
	.sb { position: sticky; top: 76px; align-self: start; order: 2; }
}
@media (min-width: 960px) {
	.g4 { grid-template-columns: repeat(4, 1fr); }
}

/* ─── ANIMATIONEN ─────────────────────────────────────────────────── */
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(220,50,40,.4); }
	70%      { box-shadow: 0 0 0 12px rgba(220,50,40,0); }
}
@keyframes slideDown {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.anim-fadeup   { animation: fadeUp 0.5s ease-out both; }
.anim-fadein   { animation: fadeIn 0.6s ease-out both; }
.anim-delay-1  { animation-delay: 0.08s; }
.anim-delay-2  { animation-delay: 0.16s; }
.anim-delay-3  { animation-delay: 0.24s; }

/* ─── DISPLAY-/VIS-HELPERS ────────────────────────────────────────── */
.desktop-nav     { display: none; }
.mobile-controls { display: flex; align-items: center; gap: 6px; }
.mobile-cta-bar  { display: block; }

@media (min-width: 960px) {
	.desktop-nav     { display: flex; align-items: center; gap: 16px; }
	.mobile-controls { display: none; }
	.mobile-cta-bar  { display: none; }
}

.wh-sr-only {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	margin: -1px;
	overflow: hidden; padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

/* Skip-link */
.wh-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-accent);
	color: #fff;
	padding: 8px 14px;
	z-index: 1000;
	border-radius: 0 0 var(--radius-sm) 0;
}
.wh-skip-link:focus { left: 0; }
