/* ============================================================
   eyeglass24 Affiliate Site – Main Stylesheet
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #1a6fb5;
  --primary-d: #145a95;
  --accent:    #e8640a;
  --text:      #1c1c1c;
  --muted:     #5a6472;
  --bg:        #ffffff;
  --bg-light:  #f5f8fc;
  --bg-dark:   #0f2640;
  --border:    #d8e2ef;
  --green:     #1a9e5f;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(0,0,0,.09);
  --max-w:     1100px;
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Layout ------------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* --- Header ------------------------------------------------- */
.site-header {
  background: var(--bg-dark);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.3px;
}
.site-logo span { color: #5aaeff; }

.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.site-nav a {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.site-nav a:hover,
.site-nav a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }

/* --- Hero --------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a4a80 60%, #1a6fb5 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: .82rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-outline  { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; }

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-badges {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: .88rem;
}
.hero-badge .icon { font-size: 1.1rem; }

/* --- Trust Bar --------------------------------------------- */
.trust-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.trust-items {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-item .check { color: var(--green); font-weight: 700; font-size: 1rem; }

/* --- Section ----------------------------------------------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: #dceeff;
  color: var(--primary);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* --- Cards Grid -------------------------------------------- */
.cards { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }

.card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .93rem; color: var(--muted); }

/* --- Product Cards ----------------------------------------- */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }

.product-card-header {
  background: linear-gradient(135deg, var(--bg-dark), #1a5090);
  color: #fff;
  padding: 24px;
  text-align: center;
}
.product-card-header .tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: .78rem;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.product-card-header h3 { font-size: 1.3rem; margin-bottom: 4px; }
.product-card-header .price { font-size: 2rem; font-weight: 800; }
.product-card-header .price-note { font-size: .8rem; opacity: .75; }

.product-card-body { padding: 24px; flex: 1; }
.product-card-body ul { list-style: none; }
.product-card-body ul li {
  padding: 6px 0;
  font-size: .93rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.product-card-body ul li:last-child { border-bottom: none; }
.product-card-body ul li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

.product-card-footer { padding: 16px 24px 24px; }
.product-card-footer .btn { width: 100%; justify-content: center; }

/* Highlighted card */
.product-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}
.product-card.featured::before {
  content: "Empfehlung";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

/* --- Process Steps ----------------------------------------- */
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: steps; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: steps;
}
.step:last-child { border-bottom: none; }

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.step-content p { font-size: .93rem; color: var(--muted); }

/* --- Comparison Table -------------------------------------- */
.compare-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-dark);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.compare-table tr:nth-child(even) { background: var(--bg-light); }
.compare-table td:first-child { font-weight: 600; }
.check-g { color: var(--green); font-weight: 700; font-size: 1.1rem; }
.check-r { color: #c0392b; font-weight: 700; }
.highlight-row td { background: #dceeff !important; font-weight: 600; }

/* --- FAQ ---------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  transition: background .15s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question .arrow { color: var(--primary); font-size: 1.2rem; transition: transform .2s; }
.faq-item.open .faq-question { background: var(--bg-light); }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: .95rem;
  background: var(--bg-light);
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }

/* --- CTA Banner -------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-dark), #1a5090);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; font-weight: 800; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .small { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: 14px; }

/* --- Info Box ---------------------------------------------- */
.info-box {
  background: #dceeff;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.info-box strong { color: var(--primary-d); }

.warning-box {
  background: #fff8e1;
  border-left: 4px solid #f39c12;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}

/* --- Breadcrumb -------------------------------------------- */
.breadcrumb {
  padding: 12px 0;
  font-size: .84rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* --- Article Content --------------------------------------- */
.article-hero {
  background: linear-gradient(135deg, var(--bg-dark), #1a4a80);
  color: #fff;
  padding: 52px 0 44px;
}
.article-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}
.article-hero .subtitle { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 660px; }
.article-meta { margin-top: 20px; font-size: .84rem; color: rgba(255,255,255,.55); display: flex; gap: 20px; flex-wrap: wrap; }

.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 40px 0 14px; color: var(--text); }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--text); }
.prose ul, .prose ol { margin: 14px 0 18px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--primary-d); }

/* --- Savings Highlight ------------------------------------- */
.savings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 28px 0; }
.saving-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.saving-item .num { font-size: 2rem; font-weight: 800; color: var(--green); }
.saving-item .label { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.6);
  padding: 40px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: rgba(255,255,255,.9); font-size: .95rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-disclaimer {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  margin-top: 12px;
  line-height: 1.5;
}

/* --- Sticky CTA (mobile) ----------------------------------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  padding: 12px 16px;
  z-index: 200;
  border-top: 2px solid var(--primary);
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.sticky-cta p { color: #fff; font-size: .85rem; margin: 0; }
.sticky-cta .btn { padding: 10px 20px; font-size: .9rem; white-space: nowrap; }

/* --- Images ------------------------------------------------- */
.hero-img-banner {
  overflow: hidden;
  max-height: 400px;
  background: #0f2640;
}
.hero-img-banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 30%;
  opacity: .92;
}

.prose-figure {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.prose-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 20%;
}
.prose-figure figcaption {
  font-size: .8rem;
  color: var(--muted);
  padding: 8px 14px;
  background: var(--bg-light);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 44px 0; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
  .compare-table { font-size: .82rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .hero-img-banner { max-height: 240px; }
  .hero-img-banner img { height: 240px; }
  .prose-figure img { height: 200px; }
}
