/* Redesign 2026: Basis fuer alle Seiten (mobile first) */

@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
	src: url('../fonts/bricolage-grotesque-var-latin.woff2') format('woff2');
}

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

:root {
	--sfb-bg: #F2EFEA;
	--sfb-surface: #FFFFFF;
	--sfb-sand: #E6E0D7;
	--sfb-ink: #141416;
	--sfb-muted: #45454B;
	--sfb-line: #D9D4CC;
	--sfb-subtle: #8F8A82;
	--sfb-dark: #141416;
	--sfb-on-dark: #F2EFEA;
	--sfb-on-dark-muted: #B5B1AA;
	--sfb-accent: #D6390C;
	--sfb-accent-ink: #B8300A;
	--sfb-accent-soft: #FF8A66;
	--sfb-font-display: 'Bricolage Grotesque', 'Rubik', system-ui, sans-serif;
	--sfb-font-body: 'Rubik', system-ui, sans-serif;
	--sfb-radius: 24px;
	--sfb-gutter: 20px;
	--sfb-section: 72px;
}

body.sfb-body {
	margin: 0;
	font-weight: 400;
	background: var(--sfb-bg);
	color: var(--sfb-ink);
	font-family: var(--sfb-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Resets gegen geerbte Theme-Regeln, nur innerhalb der neuen Bausteine */
.sfb :where(h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure, blockquote) {
	margin: 0;
	padding: 0;
	border: 0;
}
.sfb :where(h1, h2, h3, h4) {
	color: inherit;
	font-family: var(--sfb-font-display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.sfb :where(p, dt, dd, li, blockquote, figcaption, span, strong) { color: inherit; font-family: inherit; }
.sfb :where(ul) { list-style: none; }
.sfb :where(a) { color: inherit; }
.sfb :where(img) { display: block; max-width: 100%; height: auto; }
.sfb *, .sfb *::before, .sfb *::after { box-sizing: border-box; }

.sfb-wrap {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: var(--sfb-gutter);
}

.sfb-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100000;
	background: var(--sfb-ink);
	color: #FFFFFF !important;
	padding: 12px 16px;
	border-radius: 999px;
	font-family: var(--sfb-font-body);
}
.sfb-skip:focus { top: 12px; }

.sfb :focus-visible {
	outline: 3px solid var(--sfb-accent);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Header */
.sfb-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: var(--sfb-bg);
	border-bottom: 1px solid var(--sfb-line);
	font-family: var(--sfb-font-body);
}
.admin-bar .sfb-header { top: 0; }
.sfb-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 14px;
}
.sfb-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; line-height: 0; text-decoration: none; }
.sfb-logo img { width: 168px; height: auto; }
.sfb-logo__sub {
	display: block;
	font: 300 12px/1 var(--sfb-font-body);
	letter-spacing: 0.01em;
	color: var(--sfb-subtle);
	white-space: nowrap;
}

.sfb-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--sfb-surface);
	color: var(--sfb-ink);
	font: 500 15px/1 var(--sfb-font-body);
	cursor: pointer;
}

.sfb-nav {
	display: none;
	flex-direction: column;
	width: 100%;
	background: var(--sfb-surface);
	border-radius: 20px;
	padding: 8px;
	font-size: 17px;
	font-weight: 500;
}
.sfb-nav.is-open { display: flex; }
.sfb-nav a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 16px;
	border-radius: 14px;
	text-decoration: none;
	color: var(--sfb-ink);
}
.sfb-nav a:hover { background: var(--sfb-bg); color: var(--sfb-ink); }
.sfb-nav a[aria-current="page"] { color: var(--sfb-accent-ink); }
.sfb-nav .sfb-nav__cta {
	justify-content: center;
	margin-top: 6px;
	background: var(--sfb-ink);
	color: #FFFFFF;
	border-radius: 999px;
}
.sfb-nav .sfb-nav__cta:hover { background: var(--sfb-accent-ink); color: #FFFFFF; }

/* Buttons */
.sfb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sfb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	font: 500 16px/1.1 var(--sfb-font-body);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.sfb-btn:active { transform: translateY(1px); }
.sfb-btn--accent { background: var(--sfb-accent); color: #FFFFFF; }
.sfb-btn--accent:hover { background: var(--sfb-accent-ink); color: #FFFFFF; }
.sfb-btn--ghost { border: 2px solid var(--sfb-ink); color: var(--sfb-ink); }
.sfb-btn--ghost:hover { background: var(--sfb-ink); color: #FFFFFF; }
.sfb-btn--lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.sfb-link-arrow { font-weight: 500; text-underline-offset: 4px; padding-block: 8px; }
.sfb-link-arrow::after { content: ' \2192'; }

/* Footer */
.sfb-footer {
	background: var(--sfb-bg);
	color: var(--sfb-ink);
	font-family: var(--sfb-font-body);
	font-size: 16px;
	line-height: 1.55;
}
.sfb-footer__top {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 24px;
	padding-block: 56px 40px;
	border-top: 2px solid var(--sfb-ink);
}
.sfb-footer__brand {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}
.sfb-footer__logo { width: 190px; height: auto; }
.sfb-footer__claim {
	max-width: 19ch;
	font: 700 clamp(24px, 3vw, 32px)/1.12 var(--sfb-font-display);
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.sfb-footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.sfb-footer__col:last-child { grid-column: 1 / -1; }
.sfb-footer__head {
	margin-bottom: 10px;
	font: 700 12px/1.2 var(--sfb-font-display);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sfb-accent-ink);
}
.sfb-footer__col a {
	padding-block: 5px;
	text-decoration: none;
	font-weight: 500;
}
.sfb-footer__col a:hover { color: var(--sfb-accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.sfb-footer__address { font-style: normal; color: var(--sfb-muted); margin-bottom: 6px; }
.sfb-footer__note {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 22px 24px;
	border-radius: 20px;
	background: var(--sfb-sand);
	font-size: 15px;
}
.sfb-footer__note-text { max-width: 62ch; color: var(--sfb-muted); text-wrap: pretty; }
.sfb-footer__note-text strong { color: var(--sfb-ink); font-weight: 600; }
.sfb-footer__note .sfb-link-arrow { padding-block: 4px; font-size: 15px; }
.sfb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 24px;
	padding-block: 22px 32px;
	font-size: 14px;
	color: var(--sfb-muted);
}
.sfb-footer__home { display: none; }
.sfb-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.sfb-footer__legal a { padding-block: 8px; text-decoration: none; }
.sfb-footer__legal a:hover { color: var(--sfb-ink); text-decoration: underline; }
@media (min-width: 601px) {
	.admin-bar .sfb-header { top: 46px; }
}
@media (min-width: 640px) {
	:root { --sfb-gutter: 32px; --sfb-section: 96px; }
}
@media (min-width: 783px) {
	.admin-bar .sfb-header { top: 32px; }
}
@media (min-width: 960px) {
	.sfb-header__inner { padding-block: 20px; flex-wrap: nowrap; }
	.sfb-logo img { width: 210px; }
	.sfb-nav a { white-space: nowrap; }
	.sfb-header__inner { gap: 32px; }
	.sfb-logo__sub { font-size: 13px; }
	.sfb-menu-toggle { display: none; }
	.sfb-nav,
	.sfb-nav.is-open {
		display: flex;
		flex-direction: row;
		align-items: center;
		width: auto;
		gap: 2px;
		padding: 6px;
		border-radius: 999px;
		font-size: 15px;
	}
	.sfb-nav a { min-height: 44px; padding: 0 14px; border-radius: 999px; }
	.sfb-nav .sfb-nav__cta { margin: 0 0 0 4px; padding: 0 18px; }
	.sfb-btn { min-height: 58px; padding: 0 30px; font-size: 17px; }
	.sfb-footer__top { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-block: 72px 48px; }
	.sfb-footer__brand { grid-column: auto; }
	.sfb-footer__col:last-child { grid-column: auto; }
	.sfb-footer__col { padding-top: 6px; }
	.sfb-footer__note { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; }
	.sfb-footer__note .sfb-link-arrow { flex: 0 0 auto; }
	.sfb-footer__home { display: block; }
}

@media (min-width: 1200px) {
	.sfb-logo img { width: clamp(270px, 22vw, 340px); }
	.sfb-header__inner { padding-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.sfb *, .sfb *::before, .sfb *::after { transition: none !important; }
}