/* ============================================
   KREATIN-CHECK.DE – Main Stylesheet
   Aesthetic: Editorial health magazine, clean & scientific
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Custom Properties --- */
:root {
  --color-bg: #FAFAF7;
  --color-bg-alt: #F0EFEB;
  --color-bg-card: #FFFFFF;
  --color-text: #1A1A18;
  --color-text-muted: #5C5C57;
  --color-text-light: #8A8A84;
  --color-accent: #1B7A5A;
  --color-accent-light: #E8F5EE;
  --color-accent-dark: #0F5E43;
  --color-accent-warm: #C4762B;
  --color-accent-warm-light: #FFF5E9;
  --color-border: #E2E1DC;
  --color-border-light: #EEEDEA;
  --color-highlight: #F7F0E3;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  --max-width: 1140px;
  --content-width: 740px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.content-width { max-width: var(--content-width); margin: 0 auto; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: 2.65rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
h2 { font-size: 1.85rem; margin-top: 2.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 600; }

p { margin-bottom: 1.2rem; }
p + p { margin-top: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

/* --- Header / Navigation --- */
.site-header {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
}

.site-nav a:hover { color: var(--color-accent); }

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.site-nav a:hover::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); margin: 5px 0; transition: var(--transition); }

/* --- Hero Section --- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(27,122,90,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.2rem;
  max-width: 700px;
  margin: 0 auto 1.2rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(27,122,90,0.2);
}

.hero-cta:hover {
  background: var(--color-accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,122,90,0.25);
}

/* --- Featured Article Card --- */
.featured-section {
  padding: 0 0 4rem;
}

.featured-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}

.featured-card:hover { box-shadow: var(--shadow-lg); }

.featured-card-visual {
  background: linear-gradient(135deg, var(--color-accent) 0%, #2B9B73 50%, #1B7A5A 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.featured-card-visual::after {
  content: 'VS';
  font-family: var(--font-display);
  font-size: 8rem;
  position: absolute;
  opacity: 0.08;
  font-weight: 400;
}

.featured-card-visual .vs-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.featured-card-visual h3 {
  color: white;
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.3;
}

.featured-card-visual .brand-names {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
}

.featured-card-visual .brand-names span {
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
}

.featured-card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card-content .tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.featured-card-content h2 {
  margin-top: 0;
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.featured-card-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.read-more .arrow { transition: transform var(--transition); }
.read-more:hover .arrow { transform: translateX(4px); }

/* --- Article Grid --- */
.articles-section {
  padding: 3rem 0 5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 0.75rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.section-header a { font-size: 0.85rem; font-weight: 500; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.article-card-img.img-quality { background: linear-gradient(135deg, #E8F5EE, #D1EDE0); }
.article-card-img.img-vegan { background: linear-gradient(135deg, #E8F5EE, #C5E8D5); }
.article-card-img.img-brain { background: linear-gradient(135deg, #EDE8F5, #D5CCE8); }
.article-card-img.img-dosage { background: linear-gradient(135deg, #FFF5E9, #F5E6D0); }
.article-card-img.img-products { background: linear-gradient(135deg, #E6F1FB, #C5DAF0); }
.article-card-img.img-women { background: linear-gradient(135deg, #FBEAF0, #F0D0DE); }

.article-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-body .tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.article-card-body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.article-card-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.article-card-body .read-more { font-size: 0.82rem; }

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

.trust-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.trust-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1rem;
}

/* --- Article Page --- */
.article-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.article-hero .breadcrumb {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.article-hero .breadcrumb a { color: var(--color-text-muted); }

.article-hero h1 {
  font-size: 2.6rem;
  max-width: 680px;
  margin: 0 auto 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.article-meta .divider { color: var(--color-border); }

/* Article Content */
.article-content {
  padding: 2rem 0 4rem;
}

.article-content h2 {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
}

.article-content h2:first-of-type { border-top: none; padding-top: 0; }

.article-content ul, .article-content ol {
  margin: 0 0 1.2rem 1.5rem;
  line-height: 1.8;
}

.article-content li { margin-bottom: 0.3rem; }

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table thead {
  background: var(--color-accent);
  color: white;
}

.comparison-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) { background: var(--color-bg-alt); }
.comparison-table tbody tr:hover { background: var(--color-accent-light); }

/* Info Boxes */
.info-box {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.info-box.warning {
  background: var(--color-accent-warm-light);
  border-left-color: var(--color-accent-warm);
}

.info-box strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-accent);
}

.info-box.warning strong { color: var(--color-accent-warm); }

/* Product Cards */
.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow var(--transition);
}

.product-card:hover { box-shadow: var(--shadow-md); }

.product-card-icon {
  width: 72px;
  height: 72px;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.product-card-info { flex: 1; }
.product-card-info h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.product-card-info p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); }

.product-card .affiliate-btn {
  background: var(--color-accent);
  color: white;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all var(--transition);
}

.product-card .affiliate-btn:hover {
  background: var(--color-accent-dark);
  color: white;
  transform: translateY(-1px);
}

/* Verdict Box */
.verdict-box {
  background: var(--color-bg-card);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.verdict-box h3 {
  color: var(--color-accent);
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.verdict-box p { color: var(--color-text-muted); margin-bottom: 0; }

/* Table of Contents */
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 0 0 2.5rem;
}

.toc h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.toc a { color: var(--color-text); font-weight: 500; }
.toc a:hover { color: var(--color-accent); }

/* --- Footer --- */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .site-logo { color: white; margin-bottom: 0.75rem; }
.footer-brand .site-logo .logo-icon { background: var(--color-accent); }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 320px; }

.footer-links h4 {
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom a { color: rgba(255,255,255,0.6); }

/* Affiliate Disclosure */
.affiliate-disclosure {
  background: var(--color-highlight);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero { animation: fadeIn 0.6s ease; }
.featured-card { animation: fadeInUp 0.6s ease 0.1s both; }
.article-card { animation: fadeInUp 0.5s ease both; }
.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

/* --- Coming Soon Badge --- */
.article-card.coming-soon { opacity: 0.7; pointer-events: none; }
.article-card.coming-soon:hover { transform: none; box-shadow: none; }

.coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* --- About Section --- */
.about-section {
  padding: 4rem 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.about-item {
  text-align: center;
  padding: 1.5rem;
}

.about-icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: var(--color-accent);
}

.about-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.about-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Legal Pages --- */
.legal-content {
  padding: 2rem 0 4rem;
}

.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p, .legal-content li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.legal-content a { word-break: break-word; }

.placeholder-warning {
  background: #FFF3CD;
  border: 1px solid #FFDA6A;
  border-left: 4px solid #CC9A06;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: #664D03;
  line-height: 1.6;
}

.placeholder-warning strong { color: #664D03; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
  .trust-items { gap: 1.5rem; }
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .article-hero h1 { font-size: 2rem; }
  .product-card { flex-direction: column; text-align: center; }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.65rem; }
}
