/* MähCheck – Base Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #059669;
  --green-dark: #047857;
  --green-light: #d1fae5;
  --green-50: #ecfdf5;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --amber: #f59e0b;
  --blue-50: #eff6ff;
  --blue-700: #1d4ed8;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--gray-50); color: var(--gray-900); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── Header ── */
.site-header { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 50; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--gray-900); }
.logo-icon { width: 30px; height: 30px; background: var(--green); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { font-size: .875rem; color: var(--gray-600); font-weight: 500; transition: color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--green); }

/* ── Nav Dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; font-size: .875rem; color: var(--gray-600); font-weight: 500; cursor: pointer; user-select: none; transition: color .15s; white-space: nowrap; }
.nav-dropdown-trigger::after { content: '▾'; font-size: .7rem; transition: transform .2s; }
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown-trigger.active { color: var(--green); }
.nav-dropdown:hover .nav-dropdown-trigger::after { transform: rotate(-180deg); }
.nav-dropdown-menu { position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-md); min-width: 220px; padding: 10px 0 .375rem; z-index: 200; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .15s, transform .15s; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: .625rem; padding: .625rem 1rem; font-size: .85rem; color: var(--gray-700); font-weight: 500; transition: background .1s, color .1s; }
.nav-dropdown-menu a:hover { background: var(--gray-50); color: var(--green); }
.nav-dropdown-menu a .menu-icon { font-size: 1rem; flex-shrink: 0; }
.nav-dropdown-divider { height: 1px; background: var(--gray-100); margin: .375rem 0; }
.compare-badge { background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 20px; padding: 2px 8px; margin-left: 4px; display: none; }
.compare-badge.visible { display: inline; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #064e3b 100%); color: #fff; padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('https://images.pexels.com/photos/589802/pexels-photo-589802.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover; opacity: .12; }
.hero-inner { position: relative; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(5,150,105,.25); border: 1px solid rgba(5,150,105,.4); border-radius: 999px; padding: 5px 14px; font-size: .8rem; color: #6ee7b7; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.25rem; }
.hero h1 span { color: #34d399; }
.hero p { font-size: 1.05rem; color: #d1d5db; max-width: 600px; margin-bottom: 2rem; line-height: 1.65; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .875rem; color: #9ca3af; }
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-icon { width: 32px; height: 32px; background: rgba(5,150,105,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

/* ── Toolbar ── */
.toolbar { padding: 1.5rem 0 0; }
.toolbar-inner { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.search-wrap { position: relative; flex: 1; min-width: 220px; }
.search-wrap input { width: 100%; padding: .625rem 1rem .625rem 2.5rem; border: 1px solid var(--gray-200); border-radius: 8px; font-size: .875rem; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.search-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: .9rem; pointer-events: none; }
.select-wrap { position: relative; }
.select-wrap select { padding: .625rem 2rem .625rem .875rem; border: 1px solid var(--gray-200); border-radius: 8px; font-size: .875rem; background: #fff; outline: none; appearance: none; color: var(--gray-700); cursor: pointer; }
.select-wrap::after { content: '▾'; position: absolute; right: .625rem; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: .75rem; color: var(--gray-400); }

/* ── Layout: Sidebar + Grid ── */
.content-layout { display: flex; gap: 1.5rem; padding-bottom: 4rem; }
.filter-sidebar { width: 240px; flex-shrink: 0; }
@media (max-width: 768px) { .filter-sidebar { display: none; } .filter-sidebar.open { display: block; position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: #fff; padding: 1.5rem; } }
.product-grid-wrap { flex: 1; min-width: 0; }
.result-count { font-size: .875rem; color: var(--gray-500); margin-bottom: 1rem; }
.result-count strong { color: var(--gray-900); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }

/* ── Filter Sidebar ── */
.filter-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.filter-card h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); margin-bottom: .875rem; }
.filter-row { display: flex; flex-direction: column; gap: .5rem; }
.filter-check { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--gray-700); cursor: pointer; }
.filter-check input { accent-color: var(--green); width: 15px; height: 15px; }
.range-wrap { display: flex; flex-direction: column; gap: .375rem; }
.range-wrap input[type=range] { accent-color: var(--green); width: 100%; }
.range-val { font-size: .8rem; color: var(--gray-500); text-align: right; }
.filter-reset { width: 100%; padding: .5rem; border: 1px solid var(--gray-200); border-radius: 8px; background: none; font-size: .8rem; color: var(--gray-600); margin-top: .5rem; transition: border-color .15s, color .15s; }
.filter-reset:hover { border-color: var(--green); color: var(--green); }

/* ── Product Card ── */
.product-card { background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card.in-compare { border-color: var(--green); box-shadow: 0 0 0 2px rgba(5,150,105,.2); }
.product-card[hidden] { display: none; }
.card-img { position: relative; height: 180px; background: var(--gray-100); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .card-img img { transform: scale(1.04); }
.badge-brand { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); font-size: .72rem; font-weight: 600; color: var(--gray-700); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--gray-100); }
.badge-nowire { position: absolute; top: 10px; right: 10px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.card-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: .375rem; line-height: 1.35; }
.stars { display: flex; align-items: center; gap: 4px; margin-bottom: .75rem; }
.star { color: var(--gray-200); font-size: .85rem; }
.star.filled { color: var(--amber); }
.review-count { font-size: .75rem; color: var(--gray-500); }
.card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem .5rem; margin-bottom: .875rem; }
.spec { display: flex; align-items: center; gap: .375rem; font-size: .775rem; color: var(--gray-600); }
.spec-icon { color: var(--green); font-size: .85rem; flex-shrink: 0; }
.card-badges { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .875rem; }
.tag { font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.tag-wire { background: var(--green); color: #fff; }
.tag-gps { background: var(--blue-50); color: var(--blue-700); }
.tag-app { background: var(--gray-100); color: var(--gray-600); }
.tag-nav { background: #f3e8ff; color: #7c3aed; }
.card-footer { margin-top: auto; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: .75rem; }
.card-actions { display: flex; gap: .5rem; }
.btn-compare { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: .5rem .75rem; border: 1.5px solid var(--gray-200); border-radius: 8px; background: none; color: var(--gray-600); transition: all .15s; }
.btn-compare:hover { border-color: var(--green); color: var(--green); }
.btn-compare.active { background: var(--green-50); border-color: var(--green); color: var(--green); }
.btn-buy { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--green); color: #fff; font-size: .875rem; font-weight: 600; padding: .625rem; border-radius: 8px; border: none; transition: background .15s; }
.btn-buy:hover { background: var(--green-dark); }

/* ── Compare Bar ── */
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 2px solid var(--green); padding: .875rem 1rem; z-index: 60; box-shadow: 0 -4px 12px rgba(0,0,0,.1); display: none; }
.compare-bar.visible { display: block; }
.compare-bar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.compare-bar-title { font-size: .875rem; font-weight: 700; color: var(--gray-900); white-space: nowrap; }
.compare-items { display: flex; gap: .5rem; flex: 1; flex-wrap: wrap; }
.compare-item { display: flex; align-items: center; gap: .5rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 8px; padding: .375rem .625rem; font-size: .8rem; }
.compare-item button { background: none; border: none; color: var(--gray-400); font-size: .9rem; line-height: 1; padding: 0; }
.compare-item button:hover { color: var(--gray-700); }
.btn-show-compare { background: var(--green); color: #fff; font-size: .875rem; font-weight: 600; padding: .5rem 1.25rem; border-radius: 8px; border: none; white-space: nowrap; }
.btn-clear-compare { background: none; border: 1px solid var(--gray-200); color: var(--gray-600); font-size: .8rem; padding: .5rem 1rem; border-radius: 8px; white-space: nowrap; }

/* ── Comparison Table ── */
#compare-view { display: none; padding: 2rem 0 4rem; }
#compare-view.active { display: block; }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: .75rem 1rem; border: 1px solid var(--gray-200); font-size: .875rem; text-align: left; vertical-align: top; }
.compare-table th { background: var(--gray-50); font-weight: 600; color: var(--gray-700); white-space: nowrap; }
.compare-table .label-col { width: 180px; }
.compare-table td { background: #fff; }
.compare-table img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; }
.check-yes { color: var(--green); font-size: 1.1rem; }
.check-no { color: var(--gray-300); font-size: 1.1rem; }

/* ── Ratgeber Page ── */
.ratgeber-hero { background: linear-gradient(135deg, #111827 0%, #064e3b 100%); color: #fff; padding: 3.5rem 0 3rem; }
.ratgeber-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: .75rem; }
.ratgeber-hero p { font-size: 1rem; color: #d1d5db; max-width: 640px; }
.ratgeber-layout { display: flex; gap: 2rem; padding: 2.5rem 0 4rem; align-items: flex-start; }
.ratgeber-toc { width: 220px; flex-shrink: 0; position: sticky; top: 70px; }
.ratgeber-toc h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); font-weight: 700; margin-bottom: .75rem; }
.ratgeber-toc ul { list-style: none; display: flex; flex-direction: column; gap: .375rem; }
.ratgeber-toc a { font-size: .825rem; color: var(--gray-600); display: block; padding: .25rem .5rem; border-left: 2px solid var(--gray-200); transition: all .15s; }
.ratgeber-toc a:hover { color: var(--green); border-left-color: var(--green); }
.ratgeber-content { flex: 1; min-width: 0; }
@media (max-width: 768px) { .ratgeber-layout { flex-direction: column; } .ratgeber-toc { width: 100%; position: static; } }
.ratgeber-section { margin-bottom: 2.5rem; scroll-margin-top: 72px; }
.ratgeber-section h2 { font-size: 1.35rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; display: flex; align-items: center; gap: .625rem; }
.section-icon { width: 38px; height: 38px; background: var(--green-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.ratgeber-section p { font-size: .95rem; color: var(--gray-700); line-height: 1.7; margin-bottom: .875rem; }
.ratgeber-section ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .375rem; margin-bottom: .875rem; }
.ratgeber-section li { font-size: .95rem; color: var(--gray-700); line-height: 1.6; }
.tip-box { display: flex; gap: .75rem; padding: 1rem 1.125rem; border-radius: 10px; margin: 1rem 0; }
.tip-box.tip { background: var(--green-50); border: 1px solid #a7f3d0; }
.tip-box.warning { background: #fffbeb; border: 1px solid #fde68a; }
.tip-box .tip-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.tip-box p { font-size: .875rem; margin: 0; }
.tip-box.tip p { color: #065f46; }
.tip-box.warning p { color: #92400e; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--gray-200); }
.spec-table th { background: var(--gray-50); padding: .625rem 1rem; font-size: .825rem; font-weight: 700; color: var(--gray-700); text-align: left; }
.spec-table td { padding: .625rem 1rem; font-size: .875rem; color: var(--gray-700); border-top: 1px solid var(--gray-100); }
.spec-table tr:nth-child(even) td { background: var(--gray-50); }
.cta-box { background: linear-gradient(135deg, var(--green) 0%, #047857 100%); color: #fff; border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; text-align: center; }
.cta-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.cta-box p { font-size: .875rem; opacity: .9; margin-bottom: 1rem; }
.cta-box a { display: inline-block; background: #fff; color: var(--green); font-weight: 700; font-size: .875rem; padding: .625rem 1.5rem; border-radius: 8px; }

/* ── Hub Page ── */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; padding: 2.5rem 0 4rem; }
.hub-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.hub-card:hover { box-shadow: var(--shadow-md); border-color: var(--green); }
.hub-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--gray-900); }
.hub-card p { font-size: .875rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1rem; }
.hub-card a { font-size: .825rem; font-weight: 600; color: var(--green); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.faq-item { background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.125rem; background: none; border: none; font-size: .925rem; font-weight: 600; color: var(--gray-900); text-align: left; gap: .5rem; }
.faq-q::after { content: '▾'; font-size: .75rem; color: var(--gray-400); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(-180deg); }
.faq-a { display: none; padding: 0 1.125rem 1rem; font-size: .875rem; color: var(--gray-700); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }

/* ── Footer ── */
.site-footer { background: #fff; border-top: 1px solid var(--gray-200); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: .8rem; font-weight: 700; color: var(--gray-900); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .375rem; }
.footer-col li a { font-size: .875rem; color: var(--gray-500); transition: color .15s; }
.footer-col li a:hover { color: var(--green); }
.footer-col p { font-size: .8rem; color: var(--gray-400); line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--gray-100); padding-top: 1.25rem; text-align: center; font-size: .775rem; color: var(--gray-400); }

/* ── Mobile Filter Toggle ── */
.btn-filter-toggle { display: none; align-items: center; gap: .5rem; padding: .625rem 1rem; border: 1px solid var(--gray-200); border-radius: 8px; background: #fff; font-size: .875rem; color: var(--gray-700); }
@media (max-width: 768px) { .btn-filter-toggle { display: flex; } }
.filter-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
.filter-overlay.open { display: block; }

/* ── No Results ── */
.no-results { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 1rem; text-align: center; }
.no-results.visible { display: flex; }
.no-results p { color: var(--gray-500); margin-bottom: .75rem; }
.no-results button { font-size: .875rem; color: var(--green); background: none; border: none; text-decoration: underline; }

/* ── Impressum / Datenschutz ── */
.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 1rem 5rem; }
.legal-content h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.1rem; font-weight: 700; margin: 2rem 0 .75rem; }
.legal-content p, .legal-content li { font-size: .95rem; color: var(--gray-700); line-height: 1.7; }
.legal-content ul { padding-left: 1.25rem; margin-bottom: .875rem; }

/* ── Responsive ── */
@media (max-width: 640px) { .hero { padding: 3rem 0 2.5rem; } .product-grid { grid-template-columns: 1fr; } }
