/* ============================================
   CBD-ÖL.COM – Hauptstylesheet
   Responsive, Modern, SEO-freundlich
   ============================================ */

:root {
  --green-dark: #1a5c2e;
  --green-mid: #2d8a4e;
  --green-light: #4caf72;
  --green-pale: #e8f5ed;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --text-dark: #1a1a1a;
  --text-mid: #444;
  --text-light: #777;
  --bg-white: #ffffff;
  --bg-light: #f8faf8;
  --border: #e0e8e2;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 6px;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; color: var(--text-mid); }
a { color: var(--green-mid); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ---- HEADER / NAVIGATION ---- */
#header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.5rem; font-weight: 800; color: var(--green-dark);
  text-decoration: none;
}
.logo-text { display: inline; letter-spacing: -0.01em; }
.logo-accent { color: var(--gold); }
.logo span { color: var(--gold); }
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }

nav ul { list-style: none; display: flex; gap: 0.25rem; align-items: center; }
nav ul li a {
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--text-mid); font-size: 0.95rem;
}
nav ul li a:hover { background: var(--green-pale); color: var(--green-dark); }
nav ul li a.active { color: var(--green-dark); background: var(--green-pale); }

.nav-cta {
  background: var(--green-mid) !important;
  color: white !important;
  padding: 0.55rem 1.2rem !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dark); transition: var(--transition); }

/* ---- HERO ---- */
#hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 50%, #1d7a3a 100%);
  padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-text { color: white; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; font-size: 0.8rem; font-weight: 600;
  padding: 0.3rem 0.9rem; border-radius: 50px; margin-bottom: 1.2rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-text h1 { color: white; margin-bottom: 1.2rem; }
.hero-text h1 em { color: var(--gold-light); font-style: normal; }
.hero-text p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; transition: var(--transition); cursor: pointer;
  border: none; text-decoration: none;
}
.btn-primary {
  background: var(--gold); color: var(--text-dark);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,160,23,0.4); color: var(--text-dark); }
.btn-outline {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }
.btn-green {
  background: var(--green-mid); color: white;
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); color: white; }

.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2);
}
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--gold-light); display: block; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; }

.hero-image {
  display: flex; align-items: center; justify-content: center;
}
.hero-card {
  background: white; border-radius: 20px; padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 340px; width: 100%;
}
.hero-card-badge {
  background: var(--green-pale); color: var(--green-dark);
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem;
  border-radius: 50px; display: inline-block; margin-bottom: 1rem;
}
.hero-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.8rem; }
.price-tag { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); }
.price-tag small { font-size: 0.9rem; color: var(--text-light); font-weight: 400; }
.hero-card .btn { width: 100%; justify-content: center; margin-top: 1rem; }
.affiliate-note { font-size: 0.7rem; color: var(--text-light); margin-top: 0.5rem; text-align: center; }

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--bg-light); border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.trust-inner {
  display: flex; gap: 2rem; align-items: center; justify-content: center; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 500; color: var(--text-mid);
}
.trust-icon { font-size: 1.1rem; }

/* ---- SECTIONS ---- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  font-size: 0.8rem; font-weight: 700; color: var(--green-mid);
  text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 0.7rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-light); }

/* ---- PRODUKT-VERGLEICH ---- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.product-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: var(--transition); position: relative;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card.featured { border-color: var(--green-mid); border-width: 2px; }
.product-badge {
  position: absolute; top: -10px; left: 1rem;
  background: var(--green-mid); color: white;
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.7rem;
  border-radius: 50px; text-transform: uppercase;
}
.product-badge.gold { background: var(--gold); color: var(--text-dark); }
.product-img {
  width: 80px; height: 80px;
  background: var(--green-pale); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin-bottom: 1rem;
}
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.product-brand { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.product-rating { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.8rem; }
.product-rating .stars { font-size: 0.9rem; margin: 0; }
.product-rating span { font-size: 0.8rem; color: var(--text-light); }
.product-features { margin: 0.8rem 0; padding: 0; list-style: none; }
.product-features li { font-size: 0.85rem; color: var(--text-mid); padding: 0.2rem 0; padding-left: 1.2rem; position: relative; }
.product-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green-mid); font-weight: 700; }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); margin: 0.8rem 0; }
.product-price small { font-size: 0.75rem; color: var(--text-light); font-weight: 400; }
.product-price .affiliate-price { font-size: 0.8rem; color: var(--text-light); }
.product-card .btn { width: 100%; justify-content: center; font-size: 0.9rem; padding: 0.75rem 1rem; }

/* Produktpreis dynamisch laden */
.price-loading { opacity: 0.5; font-style: italic; }

/* ---- VERGLEICHSTABELLE ---- */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table th {
  background: var(--green-dark); color: white;
  padding: 1rem; text-align: left; font-weight: 600;
}
.comparison-table th:first-child { border-radius: 8px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 8px 0 0; }
.comparison-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.comparison-table tr:hover td { background: var(--green-pale); }
.comparison-table .check { color: var(--green-mid); font-weight: 700; }
.comparison-table .cross { color: #e55; }
.rating-bar { display: flex; align-items: center; gap: 0.5rem; }
.rating-fill { height: 6px; background: var(--green-mid); border-radius: 3px; }
.table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- BLOG / ARTIKEL ---- */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem;
}
.blog-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.blog-img {
  height: 180px; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative;
}
.blog-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.3)); height: 60px;
}
.blog-category {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--green-mid); color: white;
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border-radius: 4px; text-transform: uppercase;
}
.blog-body { padding: 1.25rem; }
.blog-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.6rem; }
.blog-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.blog-card h3 a { color: var(--text-dark); }
.blog-card h3 a:hover { color: var(--green-mid); }
.blog-card p { font-size: 0.87rem; color: var(--text-light); }
.read-more { font-size: 0.85rem; font-weight: 600; color: var(--green-mid); display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.5rem; }
.read-more:hover { color: var(--green-dark); }

/* ---- E-MAIL SIGNUP ---- */
.email-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 4rem 0; text-align: center; color: white;
}
.email-section h2 { color: white; margin-bottom: 0.75rem; }
.email-section p { color: rgba(255,255,255,0.85); max-width: 500px; margin: 0 auto 2rem; }
.email-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; }
.email-form input {
  flex: 1; padding: 0.85rem 1.2rem; border-radius: var(--radius);
  border: none; font-size: 1rem; outline: none;
}
.email-form input:focus { box-shadow: 0 0 0 3px rgba(212,160,23,0.4); }
.email-form button {
  background: var(--gold); color: var(--text-dark); border: none;
  padding: 0.85rem 1.5rem; border-radius: var(--radius); font-weight: 700;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.email-form button:hover { background: var(--gold-light); }
.email-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 0.8rem; }

/* ---- FAQ ---- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.faq-question {
  padding: 1.1rem 1.3rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 0.97rem;
  background: white; transition: var(--transition);
}
.faq-question:hover { background: var(--green-pale); }
.faq-question.open { color: var(--green-dark); background: var(--green-pale); }
.faq-icon { font-size: 1.2rem; transition: transform 0.3s; color: var(--green-mid); }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.3rem 1.1rem; color: var(--text-mid); font-size: 0.9rem; line-height: 1.8; }
.faq-answer.open { display: block; }

/* ---- BEWERTUNGEN ---- */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem;
}
.review-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.reviewer-name { font-weight: 700; font-size: 0.95rem; }
.review-date { font-size: 0.78rem; color: var(--text-light); }
.review-text { font-size: 0.87rem; color: var(--text-mid); line-height: 1.6; font-style: italic; }
.review-verified { font-size: 0.75rem; color: var(--green-mid); font-weight: 600; margin-top: 0.5rem; }

/* ---- DISCLAIMER ---- */
.disclaimer-box {
  background: #fff8e1; border: 1px solid #ffe082; border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.85rem; color: #7a5c00;
}
.disclaimer-box strong { color: #5c4000; }

/* ---- ARTIKEL SEITE ---- */
.article-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start;
  padding: 3rem 0;
}
.article-content h1 { margin-bottom: 1.5rem; }
.article-content h2 { margin: 2rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.article-content h3 { margin: 1.5rem 0 0.75rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.4rem; color: var(--text-mid); }
.article-content img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.article-content table th { background: var(--green-dark); color: white; padding: 0.75rem; text-align: left; }
.article-content table td { padding: 0.75rem; border-bottom: 1px solid var(--border); }
.article-content table tr:hover td { background: var(--green-pale); }

.article-meta { display: flex; gap: 1.5rem; font-size: 0.85rem; color: var(--text-light); margin-bottom: 2rem; flex-wrap: wrap; align-items: center; }
.article-meta .author { font-weight: 600; color: var(--text-mid); }
.article-meta img { width: 36px; height: 36px; border-radius: 50%; }

.sidebar { position: sticky; top: 90px; }
.sidebar-widget { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.sidebar-widget h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green-dark); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.toc-list { list-style: none; padding: 0; }
.toc-list li { padding: 0.3rem 0; }
.toc-list a { font-size: 0.87rem; color: var(--text-mid); }
.toc-list a:hover { color: var(--green-mid); }

/* ---- BREADCRUMB ---- */
.breadcrumb { font-size: 0.82rem; color: var(--text-light); padding: 0.75rem 0; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--green-mid); }
.breadcrumb span { color: var(--text-light); margin: 0 0.4rem; }

/* ---- FOOTER ---- */
#footer { background: var(--green-dark); color: white; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .logo { color: white; font-size: 1.3rem; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.87rem; margin-top: 0.75rem; }
.footer-col h5 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.87rem; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 0.5rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: white; }
.affiliate-disclosure {
  background: rgba(255,255,255,0.07); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; font-size: 0.78rem; color: rgba(255,255,255,0.55);
  margin-bottom: 2rem; line-height: 1.6;
}

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.text-green { color: var(--green-mid); }
.text-gold { color: var(--gold); }
.bg-green-pale { background: var(--green-pale); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.badge {
  display: inline-block; padding: 0.2rem 0.6rem;
  border-radius: 4px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase;
}
.badge-green { background: var(--green-pale); color: var(--green-dark); }
.badge-gold { background: #fff3cd; color: #7a5c00; }
.badge-blue { background: #e3f2fd; color: #1565c0; }

.info-box {
  background: var(--green-pale); border-left: 4px solid var(--green-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.9rem;
}
.info-box strong { color: var(--green-dark); }

/* ---- MOBILE / RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .hero-stats { justify-content: center; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  nav ul { display: none; }
  .hamburger { display: flex; }
  nav.open ul { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: white; padding: 1rem; box-shadow: var(--shadow); z-index: 999; }
  .email-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
  .products-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---- SCROLL TO TOP ---- */
#scrollTop {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: var(--green-mid); color: white; border: none;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; opacity: 0; transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#scrollTop.visible { opacity: 1; }
#scrollTop:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ---- LOADING SKELETON ---- */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
