/* ================================================
   ECOM DRAVO — CORE.CSS
   Reset, Variablen, Basistypografie, Layoutraster.
   ================================================ */

:root {
	--paper: #F8F8F7;
	--ink: #17191C;
	--accent: #C2391F;
	--steel: #52616E;
	--line: #D9D9D5;
	--font-display: "Russo One", "Arial Narrow", sans-serif;
	--font-text: "Inter", "Segoe UI", Arial, sans-serif;
	--rail-max: 1180px;
	--rail-pad: 28px;
}

/* ------------------------------------------------
   SCHRIFTEN (self-hosted, Subset "latin" deckt äöüß ab)
   ------------------------------------------------ */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-var-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Russo One";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/russo-one-400-latin.woff2") format("woff2");
}

/* ------------------------------------------------
   RESET
   ------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	position: relative;
	min-height: 100vh;
	background-color: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 17px;
	line-height: 1.6;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

ul,
ol {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* ------------------------------------------------
   BARRIEREFREIHEIT
   ------------------------------------------------ */

.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;
}

.jump-to-main {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 1000;
	padding: 14px 22px;
	background-color: var(--ink);
	color: var(--paper);
	font-family: var(--font-text);
	font-weight: 600;
	transition: top 0.18s ease;
}

.jump-to-main:focus-visible {
	top: 12px;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.jump-to-main {
		transition: none;
	}
}

/* ------------------------------------------------
   TYPOGRAFIE
   ------------------------------------------------ */

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--ink);
	line-height: 1.12;
	letter-spacing: 0.2px;
}

h1 {
	font-size: clamp(38px, 4.4vw + 8px, 76px);
}

h2 {
	font-size: clamp(28px, 2.6vw + 10px, 46px);
}

h3 {
	font-size: clamp(21px, 1.4vw + 10px, 28px);
}

h4 {
	font-size: 18px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

p {
	max-width: 68ch;
}

p + p {
	margin-top: 16px;
}

strong {
	font-weight: 700;
}

/* ------------------------------------------------
   RASTER / LAYOUT-PRIMITIVE
   ------------------------------------------------ */

.rail {
	max-width: var(--rail-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--rail-pad);
	padding-right: var(--rail-pad);
}

.rail--eng {
	max-width: 760px;
}

.rail--eng h2 {
	margin-top: 44px;
	margin-bottom: 18px;
}

.rail--eng h2:first-child {
	margin-top: 0;
}

.rail--eng h3 {
	margin-top: 32px;
	margin-bottom: 10px;
}

.rail--eng p {
	color: var(--steel);
}

.sektion {
	position: relative;
}

.sektion__marke {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--steel);
	margin-bottom: 18px;
}

.sektion__marke::before {
	content: "";
	display: inline-block;
	width: 26px;
	height: 2px;
	background-color: var(--accent);
}

.sektion--dunkel {
	background-color: var(--ink);
	color: var(--paper);
}

.sektion--dunkel .sektion__marke {
	color: #A9B4BC;
}

.sektion--dunkel h2,
.sektion--dunkel h3 {
	color: var(--paper);
}

/* Kornrauschen fuer dunkle Flaechen, editorialer Druck-Effekt. */
.sektion--dunkel::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.06;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bildtafel {
	position: relative;
}

.bildtafel img {
	width: 100%;
	max-height: 540px;
	object-fit: cover;
	object-position: center 62%;
}

.bildtafel__unterschrift {
	margin-top: 10px;
	font-size: 13px;
	color: var(--steel);
	border-left: 2px solid var(--accent);
	padding-left: 10px;
	max-width: 46ch;
}

.container {
	max-width: var(--rail-max);
	margin-left: auto;
	margin-right: auto;
}

/* Scrollbalken fuer Tabellen-Wrapper und Zeilenlisten. */
.hat-scroll {
	scrollbar-width: thin;
	scrollbar-color: var(--accent) transparent;
}

/* ------------------------------------------------
   VERTIKALER RHYTHMUS (bewusst ungleichmaessig)
   ------------------------------------------------ */

.pad-a {
	padding-top: 96px;
	padding-bottom: 96px;
}

.pad-b {
	padding-top: 64px;
	padding-bottom: 72px;
}

.pad-c {
	padding-top: 120px;
	padding-bottom: 104px;
}

.pad-d {
	padding-top: 48px;
	padding-bottom: 56px;
}

@media (max-width: 980px) {
	.pad-a { padding-top: 60px; padding-bottom: 60px; }
	.pad-b { padding-top: 48px; padding-bottom: 48px; }
	.pad-c { padding-top: 64px; padding-bottom: 60px; }
	.pad-d { padding-top: 40px; padding-bottom: 40px; }
}
