/* Insektenschutz Steinbeck — Design-System
   Grün-Palette (#88b435 Neher-nah), warme Brauntöne für Headlines,
   klare Typographie, viel Weißraum, mobile-first. */

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

:root {
	--green: #88b435;
	--green-dark: #6e9427;
	--green-darker: #4e6a1c;
	--green-light: #f5f8ec;
	--nav-active: #3a3a3a;
	--brown: #6b4423;
	--brown-light: #8a6244;
	--ink: #2a2a2a;
	--text: #4a4a4a;
	--muted: #7a7a7a;
	--border: #e5e5e5;
	--bg: #efeee9;
	--card: #ffffff;
	--warm-bg: #faf8f2;
	--font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--font-display: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--max: 1180px;
	--r: 4px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
}

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-darker); text-decoration: underline; }

/* Skip-Link für Accessibility */
.skip-link {
	position: absolute; left: -9999px;
	background: var(--green); color: #fff; padding: 0.5rem 1rem;
	z-index: 1000; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; top: 0; color: #fff; }

/* Layout-Container */
.page-frame { max-width: var(--max); margin: 0 auto; background: #fff; min-height: 100vh; box-shadow: var(--shadow-sm); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

/* Header + Logo */
.site-header {
	background: #fff;
	padding: 1.8rem 0 1.3rem;
	text-align: center;
	border-bottom: 1px solid var(--border);
}
.site-header .logo-wrap { max-width: 560px; margin: 0 auto; padding: 0 2rem; }
.site-header img, .site-header svg { width: 100%; height: auto; max-height: 130px; }

/* Nav — grüner Balken */
.site-nav {
	background: var(--green);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.site-nav .container { display: flex; align-items: stretch; padding: 0 2rem; }
.site-nav > .container > a,
.site-nav .has-dropdown > a {
	color: #fff; text-decoration: none;
	padding: 0.95rem 1.4rem;
	font-weight: 500; font-size: 0.95rem;
	display: inline-flex; align-items: center;
	transition: background 0.15s;
}
.site-nav a:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--nav-active); color: #fff; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " ▾"; font-size: 0.75rem; margin-left: 0.4em; opacity: 0.8; }
.dropdown-menu {
	position: absolute; top: 100%; left: 0;
	background: var(--green); min-width: 260px;
	display: none; z-index: 100; flex-direction: column;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { display: flex; }
.dropdown-menu a {
	padding: 0.7rem 1.2rem;
	color: #fff; text-decoration: none;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.dropdown-menu a:hover { background: var(--green-dark); color: #fff; }

/* Main */
main { padding: 2.5rem 0 3.5rem; }
main h1 { color: var(--brown); font-size: 2rem; font-weight: 500; margin: 0 0 1rem; line-height: 1.2; }
main h1 + .lead { color: var(--brown-light); font-size: 1.15rem; margin: 0 0 2rem; }
main h2 { color: var(--brown); font-size: 1.5rem; font-weight: 500; margin: 2.5rem 0 1rem; }
main h3 { color: var(--brown); font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.6rem; }
main p { margin: 0 0 1rem; }
main ul, main ol { padding-left: 1.4em; margin: 0 0 1rem; }
main li { margin: 0.35rem 0; }
main strong { color: var(--ink); }

/* Hero (Startseite) */
.hero {
	background: linear-gradient(135deg, var(--green-light) 0%, #fff 100%);
	padding: 3rem 0 2rem;
	border-bottom: 1px solid var(--border);
	margin: -2.5rem -0 3rem;
	margin-left: calc((100vw - var(--max)) / -2);
	margin-right: calc((100vw - var(--max)) / -2);
}
@media (max-width: 1180px) { .hero { margin-left: 0; margin-right: 0; } }
.hero .container { text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; }
.hero .lead { font-size: 1.2rem; max-width: 40em; margin: 0 auto 1.8rem; color: var(--brown); }
.hero-badges {
	display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
	margin: 1.5rem 0;
}
.badge {
	background: #fff; border: 1px solid var(--border);
	padding: 0.4rem 0.9rem; border-radius: 20px;
	font-size: 0.85rem; color: var(--brown);
	display: inline-flex; align-items: center; gap: 0.4rem;
}
.badge svg { width: 16px; height: 16px; color: var(--green); }
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* USP-Grid */
.usp-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem; margin: 2rem 0;
}
.usp-card {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--r); padding: 1.5rem;
	text-align: left;
}
.usp-card .icon { width: 40px; height: 40px; color: var(--green); margin-bottom: 0.8rem; }
.usp-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--brown); }
.usp-card p { margin: 0; color: var(--text); font-size: 0.95rem; }

/* Kategorie-Kacheln */
.category-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem; margin: 2rem 0;
}
.cat-tile {
	display: block; background: var(--card);
	border: 1px solid var(--border); border-radius: var(--r);
	overflow: hidden; text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.cat-tile .illus {
	aspect-ratio: 4 / 3; background: var(--green-light);
	display: flex; align-items: center; justify-content: center;
	color: var(--green-dark); padding: 1.5rem;
}
.cat-tile .illus svg { width: 100%; height: 100%; max-height: 140px; }
.cat-tile h3 {
	margin: 0; padding: 1rem 1.2rem 0.4rem;
	color: var(--brown); font-size: 1.1rem;
}
.cat-tile p {
	margin: 0; padding: 0 1.2rem 1.2rem;
	color: var(--text); font-size: 0.92rem;
}

/* Produkt-Detail Layout */
.product-detail {
	display: grid; grid-template-columns: 1fr;
	gap: 2rem; margin: 2rem 0;
	padding: 2rem 0;
	border-top: 1px solid var(--border);
}
@media (min-width: 780px) {
	.product-detail { grid-template-columns: 1.3fr 1fr; align-items: start; }
	.product-detail.reverse .product-image { order: 1; }
	.product-detail.reverse .product-content { order: 2; }
}
.product-image {
	background: var(--green-light); border-radius: var(--r);
	aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
	padding: 2rem; color: var(--green-dark);
}
.product-image svg { width: 100%; height: 100%; max-height: 240px; }
.product-content h2 { margin-top: 0; }

/* Vergleichs-Tabelle */
.compare-table {
	width: 100%; border-collapse: collapse; margin: 1.5rem 0;
	background: var(--card); box-shadow: var(--shadow-sm);
	border-radius: var(--r); overflow: hidden;
}
.compare-table th {
	background: var(--green-light); color: var(--brown);
	text-align: left; padding: 0.9rem 1rem; font-weight: 600;
	border-bottom: 2px solid var(--green);
}
.compare-table td {
	padding: 0.8rem 1rem; border-top: 1px solid var(--border);
	vertical-align: top; color: var(--text);
}
.compare-table tr:nth-child(even) td { background: #fafaf8; }
.compare-table .check { color: var(--green); font-weight: 700; }
.compare-table .dash { color: var(--muted); }

/* Info-Box / Callout */
.info-box, .warning-box, .success-box {
	padding: 1rem 1.3rem; margin: 1.5rem 0;
	border-left: 4px solid; border-radius: 0 var(--r) var(--r) 0;
}
.info-box { background: var(--green-light); border-color: var(--green); }
.warning-box { background: #fff8e1; border-color: #d4a017; }
.success-box { background: #eefaf0; border-color: #2ea43a; }

/* Ablauf-Schritte */
.steps {
	counter-reset: step;
	display: grid; grid-template-columns: 1fr; gap: 1rem;
	margin: 2rem 0;
}
@media (min-width: 720px) {
	.steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.step {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--r); padding: 1.4rem 1.5rem 1.5rem;
	position: relative; counter-increment: step;
}
.step::before {
	content: counter(step);
	position: absolute; top: -18px; left: 1.4rem;
	width: 36px; height: 36px; background: var(--green); color: #fff;
	border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 1rem;
	box-shadow: var(--shadow-sm);
}
.step h3 { margin: 0.3rem 0 0.4rem; }
.step p { margin: 0; color: var(--text); font-size: 0.95rem; }

/* Testimonial */
.testimonial {
	background: var(--warm-bg); border-radius: var(--r);
	padding: 1.5rem 1.8rem; margin: 1.5rem 0;
	border-left: 4px solid var(--green);
}
.testimonial blockquote {
	margin: 0 0 0.8rem; font-size: 1.05rem;
	color: var(--brown); font-style: italic; line-height: 1.5;
}
.testimonial cite {
	color: var(--muted); font-size: 0.9rem; font-style: normal;
}
.testimonial cite::before { content: "— "; }

/* FAQ */
.faq details {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--r); margin: 0.6rem 0; padding: 0;
}
.faq summary {
	padding: 1rem 1.2rem; cursor: pointer;
	font-weight: 500; color: var(--brown); font-size: 1rem;
	list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; position: absolute; right: 1.2rem; top: 0.9rem;
	color: var(--green); font-size: 1.4rem; font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-body { padding: 1rem 1.2rem; color: var(--text); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* Kontakt */
.contact-grid {
	display: grid; grid-template-columns: 1fr; gap: 2rem; margin: 1.5rem 0;
}
@media (min-width: 720px) {
	.contact-grid { grid-template-columns: 1fr 1.4fr; }
}
.contact-info h2 { margin-top: 0; }
.contact-info address {
	font-style: normal; line-height: 1.9; color: var(--text);
}
.contact-info .phone-big {
	font-size: 1.4rem; color: var(--green-dark); font-weight: 600;
	margin: 0.6rem 0 1rem;
}

/* Formular */
form.contact-form {
	background: var(--warm-bg); padding: 1.6rem;
	border-radius: var(--r); border: 1px solid var(--border);
}
form.contact-form h2 { margin-top: 0; }
.form-field { margin-bottom: 1rem; }
.form-field label {
	display: block; color: var(--brown); font-weight: 500;
	margin-bottom: 0.35rem; font-size: 0.95rem;
}
.form-field .required { color: var(--green-dark); }
.form-field input,
.form-field textarea,
.form-field select {
	width: 100%; padding: 0.65rem 0.8rem;
	border: 1px solid var(--border); border-radius: var(--r);
	font-family: inherit; font-size: 1rem;
	background: #fff; color: var(--text);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
	outline: none; border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(136, 180, 53, 0.18);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.consent {
	display: flex; gap: 0.6rem; align-items: flex-start;
	margin: 1rem 0; font-size: 0.9rem; color: var(--text);
}
.consent input { margin-top: 0.3rem; width: auto; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Button */
.btn {
	display: inline-block; background: var(--green); color: #fff;
	border: none; padding: 0.85rem 1.7rem;
	font-size: 1rem; font-weight: 500;
	border-radius: var(--r); cursor: pointer;
	text-decoration: none; font-family: inherit;
	transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-outline {
	background: transparent; color: var(--green-dark);
	border: 2px solid var(--green); padding: calc(0.85rem - 2px) calc(1.7rem - 2px);
}
.btn-outline:hover { background: var(--green); color: #fff; }

/* Preise */
.price-range {
	display: grid; grid-template-columns: 1fr; gap: 1rem;
	margin: 1.5rem 0;
}
@media (min-width: 640px) {
	.price-range { grid-template-columns: repeat(3, 1fr); }
}
.price-card {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--r); padding: 1.2rem 1.4rem;
}
.price-card h4 { margin: 0 0 0.3rem; color: var(--brown); font-size: 1rem; }
.price-card .price { color: var(--green-dark); font-size: 1.4rem; font-weight: 600; margin: 0.3rem 0; }
.price-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer {
	background: var(--green-darker); color: #f5f5f0;
	padding: 2rem 0 1.5rem;
	margin-top: 3rem;
}
.site-footer .footer-grid {
	display: grid; grid-template-columns: 1fr; gap: 1.5rem;
	padding: 0 2rem; max-width: 1080px; margin: 0 auto;
}
@media (min-width: 640px) {
	.site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 { color: #fff; margin: 0 0 0.6rem; font-size: 1rem; }
.site-footer address { font-style: normal; line-height: 1.7; color: #e0e5c9; }
.site-footer a { color: #f5f5f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer .bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	margin-top: 1.5rem; padding-top: 1rem;
	text-align: center; font-size: 0.85rem;
	color: #d0d5c0;
}

/* Utility */
.text-muted { color: var(--muted); font-size: 0.9rem; }
.text-center { text-align: center; }
.mt-large { margin-top: 3rem; }

/* Mobile Nav */
@media (max-width: 720px) {
	.site-nav .container { flex-direction: column; padding: 0; }
	.site-nav > .container > a,
	.site-nav .has-dropdown > a {
		padding: 0.75rem 1.5rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}
	.dropdown-menu {
		position: static; display: block;
		background: rgba(0, 0, 0, 0.1); box-shadow: none;
		min-width: 100%;
	}
	.dropdown-menu a { padding-left: 2.5rem; font-size: 0.9rem; }
	.container { padding: 0 1.3rem; }
	.hero { padding: 2rem 0 1.5rem; }
	main h1 { font-size: 1.6rem; }
	.product-image { padding: 1.5rem; }
}
