/* ============================================================
   gehrungslade.de — Stylesheet
   Design: Modern/Clean mit Petrol-Akzent
   Keine externen Fonts oder Scripts (DSGVO-konform)
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --primary:     #2C6B6F;  /* Petrol/Teal */
  --primary-dk:  #1f4d50;
  --primary-lt:  #3d8a8f;
  --gray-50:     #fafafa;
  --gray-100:    #f5f5f5;
  --gray-200:    #e5e5e5;
  --gray-300:    #d4d4d4;
  --gray-400:    #a3a3a3;
  --gray-600:    #525252;
  --gray-700:    #404040;
  --gray-900:    #171717;
  --amazon:      #FF9900;
  --amazon-dk:   #E68A00;
  --green:       #16a34a;
  --f-sans:      system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-mono:      'Courier New', Consolas, Monaco, monospace;
  --max:         1200px;
  --r:           8px;
  --rl:          12px;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.05);
  --shadow:      0 4px 6px rgba(0,0,0,.07);
  --shadow-lg:   0 10px 25px rgba(0,0,0,.1);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  background: #fff;
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
}

/* ── SKIP LINK ───────────────────────────────────────────────── */
.skip {
  position: absolute; top: -9999px; left: 1rem;
  background: var(--primary); color: #fff;
  padding: .5rem 1rem; border-radius: var(--r);
  font-size: .875rem; font-weight: 600;
  text-decoration: none; z-index: 9999;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

/* ── WERBEHINWEIS BANNER ─────────────────────────────────────── */
.ad-banner {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: .75rem 1.5rem;
  font-size: .875rem;
  color: var(--gray-600);
}
.ad-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.ad-icon {
  font-size: 1.1rem;
  color: var(--primary);
}

/* ── HEADER / NAV ────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover {
  color: var(--primary);
}
/* Burger Menu */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 101;
}

.nav-burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--gray-900);
  transition: all .3s ease;
  border-radius: 3px;
}

/* Burger Animation when open */
.nav-burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  background: url('gehrungslade-fussbodenleiste.webp') bottom center / cover no-repeat fixed;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.38) 100%);
  z-index: 0;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-claim {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 auto 2.5rem;
  max-width: 500px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-primary {
  background: #fff;
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

  background: var(--gray-100);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.mitre-box {
  fill: #d4d4d4;
  stroke: #a3a3a3;
  stroke-width: 2;
}
.guide-line {
  stroke: #737373;
  stroke-width: 2;
  stroke-linecap: round;
}
.saw-blade {
  fill: #a3a3a3;
  stroke: #737373;
  stroke-width: 1;
}
.saw-handle {
  fill: var(--primary);
  stroke: var(--primary-dk);
  stroke-width: 1;
}
.workpiece {
  fill: #fbbf24;
  stroke: #f59e0b;
  stroke-width: 1;
}
.saw-group {
  animation: sawing 3s ease-in-out infinite;
  transform-origin: center;
}

/* ── KATEGORIEN / FILTER ─────────────────────────────────────── */
.categories {
  padding: 3rem 1.5rem;
  background: #fff;
}
.categories-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.categories-grid {
    grid-template-columns: 1fr;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.category-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--rl);
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: all .2s;
}
.category-card:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.category-card.active {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44, 107, 111, 0.2);
}
.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.category-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
}
.category-desc {
  font-size: .875rem;
  color: var(--gray-600);
}

/* ── PRODUKTE ────────────────────────────────────────────────── */
.products {
  padding: 4rem 1.5rem;
  background: var(--gray-50);
}
.products-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 3rem;
}
.products-grid {
    grid-template-columns: 1fr;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ── PRODUKTKARTE ────────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: #fff;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 10;
}
.badge-bestseller {
  background: #f59e0b;
}
.badge-tipp {
  background: var(--green);
}
.badge-budget {
  background: #3b82f6;
}

.product-image {
  width: 100%;
  height: 240px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-image-placeholder {
  color: var(--gray-400);
  font-size: 3rem;
}

.product-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-category {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--primary);
  margin-bottom: .5rem;
  display: block;
}
.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.product-description {
  font-size: .9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
}
.product-features li {
  font-size: .875rem;
  color: var(--gray-700);
  padding: .375rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.btn-amazon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--amazon);
  color: #111;
  padding: .875rem 1.5rem;
  border-radius: var(--r);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.btn-amazon:hover {
  background: var(--amazon-dk);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq {
  padding: 4rem 1.5rem;
  background: #fff;
}
.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--gray-50);
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}
.faq-question:hover {
  background: var(--gray-100);
}
.faq-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform .2s;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease-out;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer-content {
  padding: 1.25rem 1.5rem;
  font-size: .9375rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ── CONTENT SECTION (Ratgeber) ─────────────────────────────── */
.content-section {
  background: #fff;
  padding: 4rem 1.5rem;
}

.content-inner {
  max-width: 800px;
  margin: 0 auto;
}

.content-intro {
  margin-bottom: 3rem;
}

.content-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--primary);
}

.content-subheading {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.5rem 0 .75rem;
  color: var(--gray-900);
}

.content-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.content-list li {
  margin-bottom: .5rem;
}

/* Comparison Table */
.comparison-table {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.comparison-table thead {
  background: var(--primary);
  color: #fff;
}

.comparison-table th,
.comparison-table td {
  padding: .75rem;
  text-align: left;
  border: 1px solid var(--gray-300);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

/* Callout Boxes */
.callout {
  background: var(--gray-50);
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  margin: 1.5rem 0;
}

.callout-highlight {
  background: #f0f9fa;
  border-left: 4px solid var(--primary);
}

.callout-conclusion {
  background: #f0f9fa;
  border-left: 4px solid var(--primary);
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.callout p {
  margin: 0;
  line-height: 1.7;
}

/* Tips Box */
.tips-box {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--r);
  margin: 2rem 0;
}

.tips-box .content-subheading {
  margin-top: 0;
}

/* VG Wort Notice */
.vg-wort-notice {
  font-size: .75rem;
  color: var(--gray-400);
  margin-top: 2rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .content-section {
    padding: 3rem 1rem;
  }
  
  .content-heading {
    font-size: 1.25rem;
  }
  
  .comparison-table {
    font-size: .8rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: .5rem;
  }
/* Burger Menu anzeigen */
  .nav-burger {
    display: flex;
  }
  
  /* Navigation verstecken */
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: .5rem;
    z-index: 100;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links li {
    border-bottom: 1px solid var(--gray-200);
    padding: .75rem 0;
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    display: block;
    padding: .5rem 0;
    font-size: 1rem;
  }  
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-700);
}
.footer-about h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-about p {
  font-size: .875rem;
  line-height: 1.7;
  margin-bottom: .75rem;
}
.footer-links h4 {
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: .5rem;
}
.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a {
  color: var(--gray-400);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #fff;
}

/* ── LEGAL PAGE ──────────────────────────────────────────────── */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: .5rem;
}
.legal-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}
.legal-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}
.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0 .75rem;
}
.legal-section p,
.legal-section address {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: .875rem;
  font-style: normal;
}
.legal-section a {
  color: var(--primary);
  text-decoration: underline;
}
.legal-section ul { margin:0 0 20px 20px}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  margin-bottom: 2rem;
}
.back-link:hover {
  text-decoration: underline;
}


/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem 2.5rem;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    gap: 2rem;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem 2rem;
  }
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .categories,
  .products,
  .faq {
    padding: 2.5rem 1rem;
  }
  .product-card {
    box-shadow: var(--shadow-sm);
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  .ad-banner {
    padding: .625rem 1rem;
    font-size: .8125rem;
  }
}

/* ── ACCESSIBILITY ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Focus styles */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
