/*
Theme Name: Genius Versand Blog
Theme URI: https://www.genius-versand.de/blog
Description: Modernes Affiliate-Theme für genius-versand.de/blog
Version: 1.0.0
Author: 12werk.de
Text Domain: genius-versand
*/

/* ── Fonts (system-first for performance, Google Fonts as enhancement via JS) ── */
:root {
  --gv-blue:      #1e3a8a;
  --gv-blue-dark: #162d6e;
  --gv-cyan:      #0ea5e9;
  --gv-cyan-lt:   #38bdf8;
  --gv-text:      #1e293b;
  --gv-muted:     #64748b;
  --gv-border:    #e2e8f0;
  --gv-bg:        #f8fafc;
  --gv-white:     #ffffff;
  --gv-orange:    #f97316;
  --gv-radius:    10px;
  --gv-shadow:    0 2px 12px rgba(0,0,0,.08);
  --gv-shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --gv-font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gv-serif:     Georgia, 'Times New Roman', serif;
  --gv-max:       1200px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gv-blue); text-decoration: none; }
a:hover { color: var(--gv-cyan); }

/* ── AdSense / Old Theme Blocker ───────────────────────────────────────────── */
ins.adsbygoogle,
.adsense-wrap,
.adsbygoogle,
[id^="aswift_"],
[id^="google_ads"],
.affili-banner,
.affili-box,
div[style*="affiliseo"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

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

.gv-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin: 40px auto; max-width: var(--gv-max); padding: 0 20px; }

@media (max-width: 900px) { .gv-wrap { grid-template-columns: 1fr; } .gv-sidebar { display: none; } }

/* ── Header ────────────────────────────────────────────────────────────────── */
#gv-header {
  background: var(--gv-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.gv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--gv-max);
  margin: 0 auto;
  padding: 0 20px;
}

.gv-logo {
  font-family: var(--gv-serif);
  font-size: 1.4rem;
  color: var(--gv-white) !important;
  letter-spacing: -.5px;
}

.gv-logo span { color: var(--gv-cyan-lt); }

nav.gv-nav ul { list-style: none; display: flex; gap: 8px; }
nav.gv-nav a {
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .2s;
}
nav.gv-nav a:hover { color: var(--gv-white); background: rgba(255,255,255,.12); }

.gv-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.gv-hamburger span { display: block; width: 22px; height: 2px; background: var(--gv-white); margin: 5px 0; border-radius: 2px; transition: .3s; }

@media (max-width: 768px) {
  .gv-hamburger { display: block; }
  nav.gv-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--gv-blue-dark); padding: 16px; }
  nav.gv-nav.open { display: block; }
  nav.gv-nav ul { flex-direction: column; gap: 4px; }
  nav.gv-nav a { display: block; padding: 10px 16px; }
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.gv-hero {
  background: linear-gradient(135deg, var(--gv-blue) 0%, #1e5fa8 50%, var(--gv-cyan) 100%);
  color: var(--gv-white);
  padding: 80px 20px 70px;
  text-align: center;
}

.gv-hero h1 {
  font-family: var(--gv-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.gv-hero p { font-size: 1.125rem; opacity: .88; max-width: 560px; margin: 0 auto 32px; }

.gv-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gv-orange);
  color: var(--gv-white) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(249,115,22,.4);
  transition: transform .2s, box-shadow .2s;
}
.gv-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,.45); color: var(--gv-white) !important; }

/* ── Category Grid ─────────────────────────────────────────────────────────── */
.gv-cats {
  background: var(--gv-bg);
  padding: 56px 20px;
}

.gv-cats h2 {
  font-family: var(--gv-serif);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--gv-blue);
}

.gv-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  max-width: var(--gv-max);
  margin: 0 auto;
}

.gv-cat-card {
  background: var(--gv-white);
  border: 1px solid var(--gv-border);
  border-radius: var(--gv-radius);
  padding: 24px 16px;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
  color: var(--gv-text) !important;
}
.gv-cat-card:hover { border-color: var(--gv-cyan); box-shadow: var(--gv-shadow); transform: translateY(-3px); color: var(--gv-blue) !important; }

.gv-cat-icon { font-size: 2rem; margin-bottom: 10px; }
.gv-cat-name { font-size: .875rem; font-weight: 600; color: var(--gv-blue); }

/* ── Post Cards ────────────────────────────────────────────────────────────── */
.gv-posts-section { padding: 56px 20px; }
.gv-posts-section h2 {
  font-family: var(--gv-serif);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--gv-blue);
}

.gv-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: var(--gv-max);
  margin: 0 auto;
}

.gv-card {
  background: var(--gv-white);
  border: 1px solid var(--gv-border);
  border-radius: var(--gv-radius);
  overflow: hidden;
  transition: all .25s;
  box-shadow: var(--gv-shadow);
}
.gv-card:hover { transform: translateY(-4px); box-shadow: var(--gv-shadow-lg); }

.gv-card-img { height: 180px; background: linear-gradient(135deg, var(--gv-blue), var(--gv-cyan)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.gv-card-body { padding: 20px; }

.gv-card-cat {
  display: inline-block;
  background: var(--gv-cyan);
  color: var(--gv-white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.gv-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.gv-card h3 a { color: var(--gv-text); }
.gv-card h3 a:hover { color: var(--gv-blue); }
.gv-card p { font-size: .875rem; color: var(--gv-muted); margin-bottom: 16px; }

.gv-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gv-blue) !important;
}
.gv-card-link::after { content: '→'; transition: transform .2s; }
.gv-card:hover .gv-card-link::after { transform: translateX(4px); }

/* ── Pagination ────────────────────────────────────────────────────────────── */
.gv-pagination { display: flex; justify-content: center; gap: 8px; padding: 32px 0; flex-wrap: wrap; }
.gv-pagination a, .gv-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: .875rem; font-weight: 600;
  border: 1px solid var(--gv-border);
  color: var(--gv-blue);
  transition: all .2s;
}
.gv-pagination a:hover, .gv-pagination .current {
  background: var(--gv-blue); color: var(--gv-white); border-color: var(--gv-blue);
}

/* ── Single Post ───────────────────────────────────────────────────────────── */
.gv-post-header {
  background: linear-gradient(135deg, var(--gv-blue), #1e5fa8);
  color: var(--gv-white);
  padding: 60px 20px 50px;
  text-align: center;
}

.gv-post-header .gv-cat-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: var(--gv-white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.gv-post-header h1 {
  font-family: var(--gv-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.25;
}

.gv-post-meta { font-size: .875rem; opacity: .8; }

.gv-post-content { font-size: 1.0625rem; line-height: 1.8; }
.gv-post-content h2 { font-family: var(--gv-serif); font-size: 1.5rem; color: var(--gv-blue); margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gv-border); }
.gv-post-content h3 { font-size: 1.125rem; color: var(--gv-text); margin: 28px 0 10px; }
.gv-post-content p { margin-bottom: 18px; }
.gv-post-content ul, .gv-post-content ol { margin: 0 0 18px 24px; }
.gv-post-content li { margin-bottom: 6px; }
.gv-post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9375rem; }
.gv-post-content th { background: var(--gv-blue); color: var(--gv-white); padding: 10px 14px; text-align: left; }
.gv-post-content td { padding: 10px 14px; border-bottom: 1px solid var(--gv-border); }
.gv-post-content tr:nth-child(even) td { background: var(--gv-bg); }

/* Affiliate notice */
.gv-affiliate-notice {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .8125rem;
  color: #92400e;
  margin: 32px 0;
}

/* ── Amazon Product Box ────────────────────────────────────────────────────── */
.gv-product-box {
  background: var(--gv-white);
  border: 2px solid var(--gv-cyan);
  border-radius: var(--gv-radius);
  padding: 24px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start;
  box-shadow: var(--gv-shadow);
}

@media (max-width: 540px) { .gv-product-box { grid-template-columns: 1fr; } }

.gv-product-img { width: 160px; height: 160px; object-fit: contain; border-radius: 8px; background: var(--gv-bg); }
.gv-product-img-placeholder { width: 160px; height: 160px; background: var(--gv-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }

.gv-product-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: var(--gv-text); }
.gv-product-price { font-size: 1.375rem; font-weight: 800; color: var(--gv-orange); margin-bottom: 6px; }
.gv-product-note { font-size: .875rem; color: var(--gv-muted); margin-bottom: 14px; }

.gv-btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gv-orange);
  color: var(--gv-white) !important;
  font-weight: 700;
  font-size: .9rem;
  padding: 11px 20px;
  border-radius: 8px;
  transition: background .2s, transform .2s;
}
.gv-btn-amazon:hover { background: #ea6c0a; transform: translateY(-1px); color: var(--gv-white) !important; }

/* ── Amazon Bestseller Grid ────────────────────────────────────────────────── */
.gv-bestseller-section { margin: 32px 0; }
.gv-bestseller-title { font-family: var(--gv-serif); font-size: 1.25rem; color: var(--gv-blue); margin-bottom: 18px; }
.gv-bestseller-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

.gv-bs-card {
  background: var(--gv-white);
  border: 1px solid var(--gv-border);
  border-radius: var(--gv-radius);
  padding: 16px;
  text-align: center;
  transition: all .25s;
  box-shadow: var(--gv-shadow);
}
.gv-bs-card:hover { transform: translateY(-3px); box-shadow: var(--gv-shadow-lg); border-color: var(--gv-cyan); }

.gv-bs-img { width: 100%; height: 150px; object-fit: contain; border-radius: 6px; background: var(--gv-bg); margin-bottom: 10px; }
.gv-bs-img-placeholder { height: 150px; background: var(--gv-bg); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 10px; }
.gv-bs-title { font-size: .8125rem; font-weight: 600; color: var(--gv-text); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gv-bs-price { font-size: 1rem; font-weight: 800; color: var(--gv-orange); margin-bottom: 10px; }
.gv-bs-link { display: block; background: var(--gv-blue); color: var(--gv-white) !important; padding: 8px; border-radius: 6px; font-size: .8125rem; font-weight: 600; transition: background .2s; }
.gv-bs-link:hover { background: var(--gv-cyan); color: var(--gv-white) !important; }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.gv-sidebar { position: sticky; top: 80px; }
.gv-sidebar-widget { background: var(--gv-white); border: 1px solid var(--gv-border); border-radius: var(--gv-radius); padding: 20px; margin-bottom: 24px; box-shadow: var(--gv-shadow); }
.gv-sidebar-widget h3 { font-family: var(--gv-serif); font-size: 1.1rem; color: var(--gv-blue); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gv-border); }
.gv-sidebar-widget ul { list-style: none; }
.gv-sidebar-widget li { border-bottom: 1px solid var(--gv-border); }
.gv-sidebar-widget li:last-child { border-bottom: none; }
.gv-sidebar-widget a { display: block; padding: 8px 0; font-size: .875rem; color: var(--gv-text); transition: color .2s; }
.gv-sidebar-widget a:hover { color: var(--gv-blue); }

.gv-sidebar-cta { background: linear-gradient(135deg, var(--gv-blue), var(--gv-cyan)); border-radius: var(--gv-radius); padding: 24px; text-align: center; color: var(--gv-white); }
.gv-sidebar-cta h3 { color: var(--gv-white); border-color: rgba(255,255,255,.3); }
.gv-sidebar-cta p { font-size: .875rem; opacity: .9; margin-bottom: 14px; }
.gv-sidebar-cta a { display: block; background: var(--gv-orange); color: var(--gv-white) !important; padding: 11px; border-radius: 8px; font-weight: 700; font-size: .875rem; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
#gv-footer {
  background: var(--gv-blue);
  color: rgba(255,255,255,.75);
  padding: 56px 20px 32px;
  margin-top: 60px;
}

.gv-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--gv-max);
  margin: 0 auto 40px;
}

@media (max-width: 768px) { .gv-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gv-footer-grid { grid-template-columns: 1fr; } }

.gv-footer-grid h4 { color: var(--gv-white); font-size: .9rem; font-weight: 700; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.gv-footer-grid p { font-size: .85rem; line-height: 1.7; }
.gv-footer-grid ul { list-style: none; }
.gv-footer-grid li { margin-bottom: 8px; }
.gv-footer-grid a { color: rgba(255,255,255,.7); font-size: .85rem; transition: color .2s; }
.gv-footer-grid a:hover { color: var(--gv-cyan-lt); }

.gv-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 24px;
  text-align: center;
  font-size: .8125rem;
  max-width: var(--gv-max);
  margin: 0 auto;
}

/* ── Loading Spinner ───────────────────────────────────────────────────────── */
.gv-loading { text-align: center; padding: 40px; color: var(--gv-muted); font-size: .9rem; }
.gv-spinner { width: 32px; height: 32px; border: 3px solid var(--gv-border); border-top-color: var(--gv-cyan); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.gv-text-center { text-align: center; }
.gv-mt-8 { margin-top: 32px; }
.gv-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 16px; color: #991b1b; font-size: .875rem; }
