/* main.css — danone-gratis-testen.de | CLEAN CONVERT Design */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --border: #E5E7EB;
  --text: #111827;
  --text-muted: #6B7280;
  --accent: #16A34A;
  --accent2: #DC2626;
  --gold: #D97706;
  --shadow: 0 1px 3px rgba(0,0,0,.10);
  --radius: 8px;
  --font: 'Inter', system-ui, sans-serif;
}

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

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

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

/* ─── TYPOGRAPHY ─── */
h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
p  { margin-bottom: 1rem; line-height: 1.75; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── LAYOUT ─── */
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: #0f172a; color: #f1f5f9; }
.section-dark h2, .section-dark h3 { color: #f1f5f9; }
.section-dark p { color: #cbd5e1; }

/* ─── NAV ─── */
.site-header {
  background: #0f172a;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  max-width: 960px;
  margin: 0 auto;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: #cbd5e1; font-size: 0.875rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.mobile-nav { display: none; }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f1f5f9;
  margin: 5px 0;
  transition: .3s;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: #0f172a;
    padding: 1rem 16px;
    gap: .75rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { color: #cbd5e1; font-size: 0.95rem; }
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}
.hero h1, .hero-desc { color: #f1f5f9; }
.hero-desc { font-size: 1.05rem; color: #94a3b8; margin: 1rem 0 1.5rem; max-width: 680px; line-height: 1.7; }

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  min-width: 90px;
}
.hero-stat strong { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.hero-stat span { font-size: 0.7rem; color: #94a3b8; text-align: center; margin-top: 2px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}
.hero-stars { color: #FBBF24; font-size: 1.1rem; }
.hero-trust-text { color: #94a3b8; font-size: 0.85rem; }

.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #15803d 100%);
  color: #fff;
  font-weight: 700;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  animation: pulse 2s infinite;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,.4); text-decoration: none; color: #fff; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,.3);
  font-weight: 600;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); text-decoration: none; color: #fff; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
  50%       { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

.hero-author-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
}
.hero-author-name a { color: #f1f5f9; text-decoration: none; font-weight: 600; }
.hero-author-role { font-size: 0.75rem; color: #94a3b8; }
.hero-pub-date { font-size: 0.75rem; color: #94a3b8; }

/* ─── VITRINA / SHOWCASE ─── */
.vitrina-section { background: var(--bg-alt); }
.vitrina-grid { display: flex; flex-direction: column; gap: 1rem; }

.casino-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 1rem;
  align-items: center;
  transition: box-shadow .2s, transform .15s;
  position: relative;
}
.casino-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); transform: translateY(-1px); }
.casino-card.top-pick { border-color: var(--accent); border-width: 2px; }
.casino-card.top-pick::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #15803d);
  border-radius: 12px 12px 0 0;
}

.card-rank {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.casino-card.top-pick .card-rank {
  background: linear-gradient(135deg, var(--accent), #15803d);
  color: #fff;
}

.card-body { min-width: 0; }
.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: #fef3c7;
  color: #92400e;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.casino-card.top-pick .card-badge { background: var(--accent); color: #fff; }
.card-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.card-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.card-meta span { margin-right: .75rem; }
.card-highlights { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0; list-style: none; }
.card-highlights li {
  font-size: 0.7rem;
  background: #f0fdf4;
  color: #166534;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}

.card-rating-block { display: flex; flex-direction: column; align-items: center; gap: .5rem; flex-shrink: 0; }
.rating-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.rating-stars { color: #FBBF24; font-size: .9rem; }
.card-cta-btn {
  display: block;
  background: linear-gradient(135deg, var(--accent), #15803d);
  color: #fff !important;
  font-weight: 700;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  text-align: center;
  font-size: .85rem;
  white-space: nowrap;
  text-decoration: none !important;
  transition: opacity .2s;
}
.card-cta-btn:hover { opacity: .9; }

@media (max-width: 600px) {
  .casino-card {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  .card-rating-block { grid-column: 2; grid-row: 2; flex-direction: row; justify-content: space-between; width: 100%; }
}

/* ─── H2 BANNERS ─── */
.h2-banner-wrap {
  display: block;
  width: calc(100% + 32px);
  margin-left: -16px;
  overflow: hidden;
  line-height: 0;
  margin-bottom: 1.5rem;
}
.h2-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 3/1;
  object-fit: cover;
}
.h2-banner-wrap figcaption {
  font-size: 11px;
  color: #6b7280;
  text-align: right;
  padding: 4px 8px 0;
  font-style: italic;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .h2-banner-img { aspect-ratio: 1/1; object-position: center top; }
  .h2-banner-wrap { width: calc(100% + 32px); }
}

/* ─── CONTENT SECTIONS ─── */
.content-section { padding: 3rem 0; }
.content-section h2 { margin-bottom: .5rem; }
.content-section p { color: var(--text); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
caption { font-size: .8rem; color: var(--text-muted); text-align: left; padding: .5rem .75rem; font-style: italic; }
thead th {
  background: #0f172a;
  color: #f1f5f9;
  padding: .75rem;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
tbody td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
tbody tr { background: #fff; }
tbody tr:hover { background: #f0fdf4; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:first-child td { font-weight: 600; color: var(--accent); }

/* ─── AUTHOR E-E-A-T ─── */
.eeat-section { background: #f0fdf4; padding: 3rem 0; }
.author-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  align-items: start;
}
@media (max-width: 600px) { .author-card { grid-template-columns: 1fr; } }
.author-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.author-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 2px; }
.author-title { color: var(--accent); font-size: .875rem; font-weight: 600; margin-bottom: .75rem; }
.author-bio { color: var(--text); line-height: 1.7; margin-bottom: 1rem; font-size: .9rem; }
.author-expertise { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.author-expertise li {
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ─── REVIEWED BY ─── */
.reviewed-by-section { background: #f0fdf4; padding: 3rem 0; }
.reviewed-by-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) { .reviewed-by-cards { grid-template-columns: 1fr; } }
.reviewer-card {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fff;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.reviewer-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #bbf7d0;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: .9rem; margin-bottom: 2px; }
.reviewer-title { font-size: .75rem; color: var(--text-muted); margin-bottom: 6px; }
.reviewer-note { font-size: .75rem; color: #166534; font-style: italic; }

/* ─── FAQ ─── */
.faq-section { padding: 3rem 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  list-style: none;
  gap: .75rem;
}
.faq-question::marker { display: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s;
  font-weight: 300;
}
details[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 1rem;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { font-size: 1.1rem; font-weight: 700; color: #f1f5f9; margin-bottom: .5rem; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: .8rem; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #94a3b8; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: #f1f5f9; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 1.5rem 0; }
.footer-disclaimer { font-size: .75rem; color: #64748b; line-height: 1.6; }
.footer-bottom {
  text-align: center;
  font-size: .75rem;
  color: #475569;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ─── STICKY CTA (MOBILE) ─── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-top: 2px solid var(--accent);
  padding: .75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
.sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; max-width: 480px; margin: 0 auto; }
.sticky-cta-text { color: #f1f5f9; font-size: .8rem; font-weight: 600; }
.sticky-cta-btn {
  background: linear-gradient(135deg, var(--accent), #15803d);
  color: #fff !important;
  font-weight: 700;
  padding: .6rem 1.25rem;
  border-radius: var(--radius);
  font-size: .85rem;
  text-decoration: none !important;
  white-space: nowrap;
  animation: pulse 2s infinite;
}
@media (max-width: 768px) { .sticky-cta { display: block; } }

/* ─── POPUP ─── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.popup-overlay.active { display: flex; }
.popup-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.popup-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.popup-emoji { font-size: 2.5rem; margin-bottom: .5rem; }
.popup-title { font-size: 1.25rem; font-weight: 800; margin-bottom: .5rem; color: var(--text); }
.popup-subtitle { color: var(--text-muted); font-size: .875rem; margin-bottom: 1.25rem; }
.popup-cta {
  display: block;
  background: linear-gradient(135deg, var(--accent), #15803d);
  color: #fff !important;
  font-weight: 700;
  padding: .9rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  animation: pulse 2s infinite;
  font-size: 1rem;
}
.popup-skip { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .75rem; cursor: pointer; }

/* ─── UTILS ─── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; }
.badge-18 {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--accent2);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

/* ─── AUTHOR PAGE ─── */
.author-page { padding: 4rem 0; }
.author-page-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.author-page-header { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem; }
.author-page-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  flex-shrink: 0;
}
.author-page-name { font-size: 1.5rem; font-weight: 800; }
.author-page-title { color: var(--accent); font-weight: 600; margin: 4px 0 .75rem; }
.author-page-bio { font-size: .9rem; line-height: 1.75; color: var(--text); margin-bottom: 1.5rem; }
.expertise-grid { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.expertise-grid li {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-muted); font-size: .875rem; margin-bottom: 1.5rem; transition: color .2s; }
.back-link:hover { color: var(--accent); }
@media (max-width: 600px) { .author-page-header { flex-direction: column; } }
