/* ==========================================================================
   VELOUR DETAILING - GRID.CSS
   Reset, Tokens, Basistypografie, Layoutraster.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

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

body {
	min-height: 100vh;
	overflow-x: hidden;
}

img,
picture,
video,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
}

button {
	cursor: pointer;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* TODO: pruefen ob das auf iPhone SE noch passt */

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */
:root {
	/* Farben */
	--wine: #1E0C15;
	--wine-2: #2A1220;
	--paper: #F3ECEE;
	--ink-light: #2A1620;
	--ink: #F5EAEE;
	--accent: #E5A9BC;
	--wine-accent: #7A1E3A;
	--cool: #0066CC;
	--cool-light: #99CCCC;
	--go: #00CC00;
	--accent-soft: #F0C9D6;

	/* Typografie */
	--font-display: "Montserrat Alternates", "Arial Narrow", sans-serif;
	--font-body: "Rubik", "Segoe UI", sans-serif;

	/* Abstaende (8pt-Raster) */
	--sp-1: 8px;
	--sp-2: 16px;
	--sp-3: 24px;
	--sp-4: 32px;
	--sp-6: 48px;
	--sp-8: 64px;
	--sp-12: 96px;
	--sp-16: 128px;

	/* Layout */
	--container: 1280px;
	--radius-s: 2px;
	--radius-m: 4px;
	--border-thin: 1px solid var(--wine-accent);
	--border-thin-cool: 1px solid var(--cool-light);

	/* Z-Index */
	--z-header: 50;
	--z-overlay: 60;
	--z-consent: 70;

	/* Schatten */
	--shadow-card: 0 18px 40px rgba(15, 4, 9, 0.35);
}

/* --------------------------------------------------------------------------
   3. FONT-FACES (self-hosted)
   -------------------------------------------------------------------------- */
@font-face {
	font-family: "Montserrat Alternates";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/montserrat-alternates-600.woff2") format("woff2");
}

@font-face {
	font-family: "Montserrat Alternates";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/montserrat-alternates-700.woff2") format("woff2");
}

@font-face {
	font-family: "Rubik";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/rubik-400.woff2") format("woff2");
}

@font-face {
	font-family: "Rubik";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/rubik-500.woff2") format("woff2");
}

@font-face {
	font-family: "Rubik";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/rubik-600.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   4. BASISTYPOGRAFIE
   -------------------------------------------------------------------------- */
body {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-light);
	background-color: var(--paper);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	color: inherit;
}

h1 {
	font-size: 56px;
	letter-spacing: -0.01em;
}

h2 {
	font-size: 40px;
}

h3 {
	font-size: 24px;
	font-weight: 600;
}

h4 {
	font-size: 19px;
	font-weight: 600;
}

p {
	max-width: 68ch;
}

/* Ueberschriften enden mit Punkt (Hausstil dieser Codebase). */
.section-title::after,
.card-title::after {
	content: ".";
}

strong {
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. LAYOUTRASTER
   -------------------------------------------------------------------------- */
.shell {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--sp-3);
}

.grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-6);
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-4);
}

main {
	display: block;
}

section {
	padding-block: var(--sp-12);
}

/* Split-Screen-Grundgeruest: zwei Haelften, tiefer Kontrast. */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 100vh;
}

.split-half {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--sp-8) var(--sp-6);
	position: relative;
}

.split-half--dark {
	background-color: var(--wine);
	color: var(--ink);
}

.split-half--light {
	background-color: var(--paper);
	color: var(--ink-light);
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. UTILITIES
   -------------------------------------------------------------------------- */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-to-content {
	position: absolute;
	top: -100px;
	left: var(--sp-2);
	z-index: 999;
	background-color: var(--accent);
	color: var(--wine);
	padding: var(--sp-1) var(--sp-2);
	border-radius: var(--radius-s);
	font-weight: 600;
}

.skip-to-content:focus {
	top: var(--sp-2);
}

:focus-visible {
	outline: 2px solid var(--cool);
	outline-offset: 2px;
}

.text-center {
	text-align: center;
}

.mt-6 {
	margin-top: var(--sp-6);
}

.img-round {
	border-radius: var(--radius-m);
}

.tint-lead {
	color: var(--ink);
	max-width: 60ch;
}

.section-tint {
	background-color: var(--wine-2);
	color: var(--ink);
}

.section-tint .section-title {
	color: var(--ink);
}

.section-tint .eyebrow {
	color: var(--accent);
}

.eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wine-accent);
	margin-bottom: var(--sp-2);
}

.split-half--dark .eyebrow {
	color: var(--accent);
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE (desktop-first, max-width-Kaskade)
   -------------------------------------------------------------------------- */
@media (min-width: 1601px) {
	/* grosse Desktops */
}

@media (max-width: 1200px) {
	:root {
		--container: 1080px;
	}

	h1 {
		font-size: 48px;
	}

	h2 {
		font-size: 34px;
	}
}

@media (max-width: 1024px) {
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 860px) {
	.split {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.split-half {
		padding: var(--sp-6) var(--sp-3);
	}

	.grid-2 {
		grid-template-columns: 1fr;
		gap: var(--sp-4);
	}
}

@media (max-width: 640px) {
	:root {
		--container: 100%;
	}

	h1 {
		font-size: 34px;
	}

	h2 {
		font-size: 27px;
	}

	h3 {
		font-size: 21px;
	}

	body {
		font-size: 16px;
	}

	section {
		padding-block: var(--sp-8);
	}

	.grid-3 {
		grid-template-columns: 1fr;
	}
}
