/* =========================================================================
   Insecticon Shop - main.css
   Basis-Layout, Typografie, Komponenten. WooCommerce-spezifische Regeln
   liegen in woocommerce.css.
   ========================================================================= */

/* --- Design Tokens ----------------------------------------------------- */
:root {
	/* Backgrounds */
	--color-bg: #F4F1EA;
	--color-bg-soft: #EFEBE2;
	--color-dark: #111614;

	/* Text & Accents */
	--color-text: #1D1D1A;
	--color-muted: #6F6A60;
	--color-accent: #8A5A36;
	--color-accent-hover: #74492b;
	--color-green: #355F2E;

	/* UI */
	--border-soft: rgba(29, 29, 26, 0.14);
	--border-strong: rgba(29, 29, 26, 0.30);

	/* Typography */
	--font-display: "Mila", Georgia, serif;
	--font-body: "Open Sans", system-ui, -apple-system, Segoe UI, sans-serif;

	/* Layout */
	--container: 1120px;
	--gutter: 48px;
	--section-space: 110px;
	--section-space-compact: 80px;

	/* Radii & Shadow (zurueckhaltend) */
	--radius-sm: 4px;
	--radius-md: 8px;
	--shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

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

body {
	margin: 0;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
	color: var(--color-accent-hover);
}

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

/* --- Typografie -------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	line-height: 1.2;
	font-weight: 500;
}

h1, h2 {
	font-family: var(--font-display);
	letter-spacing: 0.005em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }

h3, h4, h5, h6 {
	font-family: var(--font-body);
	font-weight: 700;
}

h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p {
	margin: 0 0 1.2em;
}

ul, ol {
	margin: 0 0 1.2em;
	padding-left: 1.3em;
}

blockquote {
	margin: 1.6em 0;
	padding-left: 1.2em;
	border-left: 3px solid var(--color-accent);
	font-family: var(--font-display);
	font-size: 1.3rem;
	color: var(--color-text);
}

hr {
	border: 0;
	border-top: 1px solid var(--border-soft);
	margin: 2.4em 0;
}

.eyebrow {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-muted);
	font-weight: 600;
	margin-bottom: 0.6em;
}

.text-narrow {
	max-width: 680px;
}

/* --- Layout ------------------------------------------------------------ */
.container {
	width: min(100% - var(--gutter), var(--container));
	margin-inline: auto;
}

.section {
	padding: var(--section-space) 0;
}

.section--compact {
	padding: var(--section-space-compact) 0;
}

.section--dark {
	background-color: var(--color-dark);
	color: var(--color-bg);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
	color: var(--color-bg);
}

.section--soft {
	background-color: var(--color-bg-soft);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-dark);
	color: #fff;
	padding: 0.6em 1em;
	z-index: 1000;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

/* --- Header ------------------------------------------------------------ */
.site-header {
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--border-soft);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.site-branding .site-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 500;
}

.site-branding a {
	color: var(--color-text);
}

.site-branding img {
	max-height: 40px;
	width: auto;
}

/* Primaere Navigation */
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
}

.main-navigation a {
	color: var(--color-text);
	font-size: 0.95rem;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	border-bottom-color: var(--color-accent);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.header-icon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-text);
	font-size: 0.9rem;
}

.header-cart__count {
	background: var(--color-accent);
	color: #fff;
	font-size: 0.72rem;
	line-height: 1;
	padding: 3px 6px;
	border-radius: 999px;
	min-width: 18px;
	text-align: center;
}

/* Mobile Toggle */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	padding: 8px 10px;
	cursor: pointer;
	color: var(--color-text);
	font-size: 0.85rem;
}

/* --- Footer ------------------------------------------------------------ */
.site-footer {
	background-color: var(--color-dark);
	color: #cfc9bd;
	padding: 64px 0 32px;
	margin-top: auto;
}

.site-footer a {
	color: #cfc9bd;
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand {
	font-family: var(--font-display);
	font-size: 1.3rem;
	color: #fff;
	margin-bottom: 12px;
}

.site-footer__claim {
	color: #9b9588;
	max-width: 32ch;
	font-size: 0.95rem;
}

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav li {
	margin-bottom: 8px;
}

.footer-heading {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #7d7669;
	margin-bottom: 14px;
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	font-size: 0.82rem;
	color: #7d7669;
	flex-wrap: wrap;
}

/* --- Buttons ----------------------------------------------------------- */
.btn,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 13px 24px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	text-align: center;
}

.btn--primary,
.button {
	background-color: var(--color-accent);
	color: #fff;
}

.btn--primary:hover,
.button:hover {
	background-color: var(--color-accent-hover);
	color: #fff;
}

.btn--dark {
	background-color: var(--color-dark);
	color: #fff;
}

.btn--dark:hover {
	background-color: #000;
	color: #fff;
}

.btn--secondary {
	background-color: transparent;
	color: var(--color-text);
	border-color: var(--border-strong);
}

.btn--secondary:hover {
	border-color: var(--color-text);
	color: var(--color-text);
}

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

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.text-link::after {
	content: "\2192";
	transition: transform 0.18s ease;
}

.text-link:hover::after {
	transform: translateX(3px);
}

/* --- Cards ------------------------------------------------------------- */
.card {
	background: #fff;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	overflow: hidden;
}

/* --- Page / Generic content ------------------------------------------- */
.page-hero {
	padding: 72px 0 40px;
}

.page-hero .eyebrow {
	margin-bottom: 0.8em;
}

.entry-content {
	max-width: 680px;
}

.entry-content img {
	border-radius: var(--radius-sm);
	margin: 1.4em 0;
}

/* --- 404 --------------------------------------------------------------- */
.error-404 {
	text-align: center;
	padding: 120px 0;
}

.error-404 .error-code {
	font-family: var(--font-display);
	font-size: clamp(4rem, 10vw, 7rem);
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 0.2em;
}

/* --- Utility ----------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}

.muted {
	color: var(--color-muted);
}

/* --- Notices (theme-eigene Hinweise) ---------------------------------- */
.notice-box {
	background: var(--color-bg-soft);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	padding: 18px 20px;
	font-size: 0.95rem;
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
	:root {
		--section-space: 72px;
		--section-space-compact: 56px;
		--gutter: 32px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 720px) {
	.menu-toggle {
		display: inline-block;
	}

	.main-navigation {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--color-bg);
		border-bottom: 1px solid var(--border-soft);
		padding: 16px var(--gutter);
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 14px;
	}

	.site-header__inner {
		position: relative;
		flex-wrap: wrap;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.site-footer__bottom {
		flex-direction: column;
	}
}
