/* Grundlagen – Reset, Typografie, Container, Buttons */

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

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

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

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

body {
	margin: 0;
	background: var(--ffg-beige);
	color: var(--ffg-text);
	font-family: var(--ffg-font);
	font-size: var(--ffg-size-md);
	line-height: var(--ffg-lh-base);
	-webkit-font-smoothing: antialiased;
}

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

img {
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--ffg-charcoal);
	font-weight: 800;
	line-height: var(--ffg-lh-tight);
}

h1 {
	font-size: var(--ffg-h1);
	font-weight: 900;
}

h2 {
	font-size: var(--ffg-h2);
}

h3 {
	font-size: var(--ffg-h3);
	font-weight: 700;
}

p {
	margin: 0 0 var(--ffg-space-4);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

li {
	list-style: none;
}

button {
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 0.1875rem solid var(--ffg-brown-logo);
	outline-offset: 0.125rem;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.container {
	width: 100%;
	max-width: calc(var(--ffg-container) + 2 * var(--ffg-gutter));
	margin-inline: auto;
	padding-inline: var(--ffg-gutter);
}

.eyebrow {
	margin: 0 0 var(--ffg-space-2);
	color: var(--ffg-brown-logo);
	font-size: var(--ffg-size-eyebrow);
	font-weight: 600;
	letter-spacing: var(--ffg-ls-eyebrow);
	text-transform: uppercase;
}

.visually-hidden {
	position: absolute;
	width: 0.0625rem;
	height: 0.0625rem;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
	display: inline-flex;
	gap: var(--ffg-space-2);
	align-items: center;
	justify-content: center;
	min-height: var(--ffg-tap);
	padding: 0.75rem 1.125rem;
	border: 0.0625rem solid transparent;
	border-radius: var(--ffg-radius);
	font-size: var(--ffg-size-md);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
	background: var(--ffg-brown-dark);
	color: var(--ffg-white);
}

.btn--primary:hover {
	background: var(--ffg-brown-dark-hover);
}

.btn--secondary {
	border-color: var(--ffg-brown-logo);
	color: var(--ffg-brown-dark);
}

.btn--secondary:hover {
	background: var(--ffg-brown-logo);
	color: var(--ffg-white);
}

.btn--cart {
	background: var(--ffg-green);
	color: var(--ffg-white);
}

.btn--cart:hover {
	background: var(--ffg-green-dark);
}

.btn--block {
	width: 100%;
}

/* Die kleine Variante stammt aus der Produktkarte in Design 1 (12 px Text,
   10 px Innenabstand = 36 px hoch). Auf Zeigegeräten bleibt sie so, auf Touch
   wächst sie auf 44 px – sonst ist sie zu klein zum Treffen. */
.btn--sm {
	min-height: 2.25rem;
	padding: 0.625rem 1.125rem;
	font-size: var(--ffg-size-sm);
}

@media (max-width: 61.9375rem) {
	.btn--sm {
		min-height: var(--ffg-tap);
	}
}

/* ── Abschnitts-Kopf ────────────────────────────────────────────────────── */

/* Überschrift links, „Alle anzeigen" rechts. Auf schmalen Bildschirmen war die
   Zeile bisher zu eng für beides: „Sales & Angebote" brach zweizeilig um und
   der Knopf gleich mit. Der Knopf bleibt jetzt einzeilig und rutscht bei
   Platzmangel unter die Überschrift. */
.section__head {
	display: flex;
	gap: var(--ffg-space-3) var(--ffg-space-4);
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: var(--ffg-space-5);
}

.section__head .btn {
	white-space: nowrap;
}

/* ── Karte ──────────────────────────────────────────────────────────────── */

.card {
	background: var(--ffg-white);
	border-radius: var(--ffg-radius-card);
	box-shadow: var(--ffg-shadow);
}

/* ── Annotationen für die Präsentation ──────────────────────────────────── */

.note {
	position: relative;
	margin-top: var(--ffg-space-3);
	padding: var(--ffg-space-3) var(--ffg-space-4);
	border-left: 0.1875rem solid var(--ffg-red);
	background: rgb(231 46 41 / 6%);
	color: var(--ffg-brown-dark);
	font-size: var(--ffg-size-sm);
	line-height: var(--ffg-lh-relaxed);
}

.note strong {
	color: var(--ffg-red);
}

[data-notes="off"] .note {
	display: none;
}

/* Der Schalter schwebt über der Seite und liegt damit zwangsläufig auf
   irgendetwas. Deshalb klein, aber im Aktionsrot – im Termin soll er sofort
   zu finden sein. */
.notes-toggle {
	position: fixed;
	right: var(--ffg-space-3);
	bottom: 5.5rem;
	z-index: 60;
	display: inline-flex;
	gap: var(--ffg-space-2);
	align-items: center;
	min-height: 2rem;
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	background: var(--ffg-red);
	color: var(--ffg-white);
	font-size: var(--ffg-size-sm);
	font-weight: 600;
	backdrop-filter: blur(0.25rem);
	transition: background-color 0.15s ease;
}

.notes-toggle:hover,
.notes-toggle:focus-visible {
	background: var(--ffg-red-dark);
}

@media (min-width: 62rem) {
	.notes-toggle {
		bottom: var(--ffg-space-4);
	}
}
