/**
 * Bäckerei Schuster – Theme-Styles (Header, Footer, Basistypografie).
 * Die Apple-Design-Tokens werden zusätzlich vom Plugin
 * "Bäckerei Schuster – Blocks" geladen (blocks-frontend.css) und hier
 * defensiv erneut definiert, damit das Theme auch ohne aktives Plugin
 * konsistent aussieht.
 */
:root {
	--apple-bg-white: #FFFFFF;
	--apple-bg-dark: #1D1D1F;
	--apple-bg-light-gray: #F5F5F7;
	--apple-bg-elevated: #FBFBFD;

	--apple-text-primary: #1D1D1F;
	--apple-text-secondary: #6E6E73;
	--apple-text-tertiary: #86868B;
	--apple-text-on-dark: #F5F5F7;
	--apple-text-white: #FFFFFF;

	--apple-link-blue: #0066CC;
	--apple-link-blue-hover: #0077ED;
	--apple-accent-orange: #E85D04;
	--bs-accent: var(--apple-accent-orange);
	--bs-accent-hover: #C94E00;

	--apple-font-display: 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
	--apple-font-text: 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;

	--apple-leading-body: 1.53;
	--apple-content-max-width: 980px;
	--apple-content-max-width-lg: 1200px;
	--apple-radius-button: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--apple-font-text);
	font-size: 17px;
	line-height: var(--apple-leading-body);
	color: var(--apple-text-primary);
	background: var(--apple-bg-white);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--apple-link-blue); }
a:hover { color: var(--apple-link-blue-hover); }

img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
	position: absolute;
	left: -9999px;
}

.bs-content {
	width: 100%;
	max-width: var(--apple-content-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}
@media (min-width: 1440px) {
	.bs-content { max-width: var(--apple-content-max-width-lg); }
}
.bs-content--narrow { max-width: 680px; }

.bs-section { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 1068px) { .bs-section { padding-top: 100px; padding-bottom: 100px; } }

.bs-link {
	display: inline-block;
	font-weight: 500;
	text-decoration: none;
	padding: 12px 28px;
	border-radius: var(--apple-radius-button);
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.bs-link--primary { background: var(--bs-accent); color: var(--apple-text-white); }
.bs-link--primary:hover { background: var(--bs-accent-hover); color: var(--apple-text-white); transform: translateY(-1px); }
.bs-link--secondary { background: transparent; color: var(--apple-link-blue); padding-left: 8px; padding-right: 8px; }

/* ---------------------------------------------------------------- */
/* Navigation                                                        */
/* ---------------------------------------------------------------- */
.bs-nav {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(251, 251, 253, 0.8);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.bs-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 52px;
}
.bs-nav__brand {
	font-family: var(--apple-font-display);
	font-weight: 600;
	font-size: 17px;
	color: var(--apple-text-primary);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
}
.bs-nav__brand img { max-height: 32px; width: auto; }

.bs-nav__list {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bs-nav__list a {
	color: var(--apple-text-primary);
	text-decoration: none;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.85;
}
.bs-nav__list a:hover { opacity: 1; color: var(--bs-accent); }

.bs-nav__toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.bs-nav__toggle-bar {
	width: 22px;
	height: 2px;
	background: var(--apple-text-primary);
	display: block;
}

@media (max-width: 733px) {
	.bs-nav__toggle { display: flex; }
	.bs-nav__menu {
		display: none;
		position: absolute;
		top: 52px;
		left: 0;
		right: 0;
		background: var(--apple-bg-white);
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
		padding: 16px 24px 24px;
	}
	.bs-nav__menu.is-open { display: block; }
	.bs-nav__list { flex-direction: column; gap: 16px; }
}

/* ---------------------------------------------------------------- */
/* Footer                                                            */
/* ---------------------------------------------------------------- */
.bs-footer {
	background: var(--apple-bg-dark);
	color: var(--apple-text-tertiary);
	padding: 48px 0;
}
.bs-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.bs-footer__name {
	font-family: var(--apple-font-display);
	font-weight: 600;
	color: var(--apple-text-on-dark);
	margin: 0 0 4px 0;
}
.bs-footer__adresse { margin: 0; font-size: 13px; }
.bs-footer__list {
	display: flex;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bs-footer__list a { color: var(--apple-text-tertiary); text-decoration: none; font-size: 13px; }
.bs-footer__list a:hover { color: var(--apple-text-on-dark); }
.bs-footer__copyright { width: 100%; font-size: 12px; margin: 16px 0 0 0; }

/* ---------------------------------------------------------------- */
/* Einfache Seiten / Beiträge                                       */
/* ---------------------------------------------------------------- */
.bs-page__title {
	font-family: var(--apple-font-display);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 16px 0;
}
.bs-page__meta { color: var(--apple-text-tertiary); font-size: 14px; margin: 0 0 32px 0; }
.bs-page__content { font-size: 19px; line-height: var(--apple-leading-body); color: var(--apple-text-secondary); }
.bs-page__content h2 { font-family: var(--apple-font-display); color: var(--apple-text-primary); }
.bs-page--teaser { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--apple-bg-light-gray); }
.bs-page--teaser:last-child { border-bottom: none; }
.bs-page--teaser .bs-page__title a { color: var(--apple-text-primary); text-decoration: none; }

.bs-hero--404 {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: linear-gradient(180deg, #1D1D1F 0%, #000000 100%);
	color: var(--apple-text-white);
}
.bs-hero--404 .bs-hero__headline { font-family: var(--apple-font-display); font-size: 48px; margin: 0 0 12px 0; }
.bs-hero--404 .bs-hero__subtitle { color: var(--apple-text-on-dark); opacity: .8; margin: 0 0 24px 0; }
