/*
Theme Name: DealHunter DE
Theme URI: https://dealhunter-de.de
Author: DealHunter
Author URI: https://dealhunter-de.de
Description: Modernes Amazon Affiliate Deal-Theme – REST API, SEO, Schema.org, Amazon-ready
Version: 7.0
License: GNU General Public License v2 or later
Text Domain: dealhunter
*/

/* ========================================
   RESET & BASIS
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d; --surface: #161616; --surface2: #111;
  --accent: #ff4d00; --accent2: #ffb800;
  --text: #f0ece4; --muted: #888;
  --border: rgba(255,255,255,0.08);
  --radius: 12px; --max-width: 1200px;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body { font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; font-weight: 400; }

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

/* ========================================
   NAVIGATION
======================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(13,13,13,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: 60px; display: flex; align-items: center; padding: 0 2rem; }
.header-inner { width: 100%; max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-logo { font-family: var(--font-heading); font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--text) !important; text-decoration: none !important; white-space: nowrap; }
.site-logo span { color: var(--accent); }
.main-navigation ul { display: flex; gap: 2rem; list-style: none; }
.main-navigation ul a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.main-navigation ul a:hover, .main-navigation ul .current-menu-item > a { color: var(--text); }
.live-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }

/* ========================================
   HERO
======================================== */
.site-hero { padding: 3rem 2rem 2.5rem; max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.hero-title { font-family: var(--font-heading); font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-subtitle { color: var(--muted); margin-top: 0.75rem; max-width: 420px; font-size: 14px; line-height: 1.6; }
.hero-stats { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; text-align: center; min-width: 90px; }
.stat-number { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--accent2); display: block; line-height: 1.1; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ========================================
   DEALS SECTION
======================================== */
.deals-section { max-width: var(--max-width); margin: 0 auto; padding: 2rem 2rem 3rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.view-all-link { font-size: 13px; color: var(--accent); text-decoration: none; }
.view-all-link:hover { text-decoration: underline; }
.affiliate-note { font-size: 12px; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; margin-bottom: 1.5rem; }
.filter-bar { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); padding: 5px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); }
.filter-btn.active, .filter-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }

/* Deal Card */
.deal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s; position: relative; }
.deal-card:hover { transform: translateY(-3px); border-color: rgba(255,77,0,0.35); }
.deal-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 20px; z-index: 2; color: #fff; }
.deal-badge.blitz { background: var(--accent); }
.deal-badge.prime { background: #00a8e0; }
.deal-image { width: 100%; height: 160px; object-fit: contain; background: var(--surface2); border-bottom: 1px solid var(--border); }
.deal-body { padding: 1rem; }
.deal-title { font-size: 13px; font-weight: 500; line-height: 1.45; margin-bottom: 0.5rem; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-pricing { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.35rem; }
.deal-price { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--accent2); line-height: 1; }
.deal-old-price { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.deal-saving { font-size: 12px; color: #5cb85c; font-weight: 500; margin-bottom: 0.85rem; }
.deal-btn { display: block; width: 100%; padding: 9px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 500; cursor: pointer; text-align: center; transition: opacity 0.2s; text-decoration: none; }
.deal-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }

/* ========================================
   BLOG SECTION
======================================== */
.blog-section { max-width: var(--max-width); margin: 0 auto; padding: 2rem 2rem 3rem; border-top: 1px solid var(--border); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.blog-card:hover { border-color: rgba(255,184,0,0.35); }
.blog-card-img { width: 100%; height: 180px; object-fit: cover; background: var(--surface2); }
.blog-card-body { padding: 1.25rem; }
.blog-tag { display: inline-block; font-size: 11px; color: var(--accent2); border: 1px solid rgba(255,184,0,0.3); padding: 2px 8px; border-radius: 20px; margin-bottom: 0.6rem; }
.blog-card-title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; color: var(--text); text-decoration: none; display: block; }
.blog-card-title:hover { color: var(--accent2); text-decoration: none; }
.blog-excerpt { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }

/* ========================================
   EINZELNER BLOG-POST
======================================== */
.single-post { max-width: 760px; margin: 0 auto; padding: 2rem 2rem 4rem; }

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--muted); }

/* Post Header */
.post-header { margin-bottom: 2rem; }
.post-meta-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.post-reading-time { font-size: 12px; color: var(--muted); }
.post-title { font-family: var(--font-heading); font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 0.75rem; }
.post-meta-bar { font-size: 13px; color: var(--muted); display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Beitragsbild */
.post-hero-image { margin-bottom: 2.5rem; border-radius: var(--radius); overflow: hidden; }
.post-featured-img { width: 100%; height: 400px; object-fit: cover; display: block; }

/* Inhalt */
.post-content-wrap { }

.post-content { font-size: 16px; line-height: 1.85; color: #d8d4cc; }
.post-content h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--text); margin: 2.5rem 0 1rem; letter-spacing: -0.3px; }
.post-content h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text); margin: 2rem 0 0.75rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content strong { color: var(--text); font-weight: 500; }
.post-content a { color: var(--accent2); border-bottom: 1px solid rgba(255,184,0,0.3); text-decoration: none; }
.post-content a:hover { border-bottom-color: var(--accent2); }
.post-content blockquote { border-left: 3px solid var(--accent); padding: 0.75rem 1.25rem; margin: 1.5rem 0; background: var(--surface); border-radius: 0 8px 8px 0; color: var(--muted); font-style: italic; }
.post-content img { border-radius: 8px; margin: 1.5rem 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 14px; }
.post-content table th, .post-content table td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.post-content table th { background: var(--surface); color: var(--text); font-weight: 500; }

/* Affiliate Note */
.post-affiliate-note { font-size: 12px; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; margin: 2rem 0; }

/* CTA Block */
.post-cta-block { background: var(--surface); border: 1px solid rgba(255,77,0,0.25); border-radius: var(--radius); padding: 1.5rem; margin: 2.5rem 0; }
.post-cta-inner { display: flex; align-items: center; gap: 1.25rem; }
.post-cta-img { width: 80px; height: 80px; object-fit: contain; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--surface2); }
.post-cta-img img { width: 100%; height: 100%; object-fit: contain; }
.post-cta-content { flex: 1; }
.post-cta-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 0.5rem; }
.post-cta-price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.75rem; }
.post-cta-btn { display: inline-block; width: auto; padding: 10px 20px; font-size: 14px; }

/* Navigation */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.post-nav-prev, .post-nav-next { display: flex; flex-direction: column; gap: 4px; }
.post-nav-next { text-align: right; align-items: flex-end; }
.post-nav-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.post-nav-prev a, .post-nav-next a { font-size: 14px; color: var(--text); text-decoration: none; font-weight: 500; }
.post-nav-prev a:hover, .post-nav-next a:hover { color: var(--accent2); }

/* ========================================
   STATISCHE SEITEN (Impressum, etc.)
======================================== */
.page-container { max-width: 800px; margin: 3rem auto; padding: 0 2rem 4rem; }
.page-container h1 { font-family: var(--font-heading); font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.page-container h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin: 2rem 0 0.75rem; }
.page-container p { color: #c8c4bc; margin-bottom: 1rem; }
.page-container a { color: var(--accent); }
.page-container ul, .page-container ol { color: #c8c4bc; padding-left: 1.5rem; margin-bottom: 1rem; }

/* ========================================
   FOOTER
======================================== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 1.75rem 2rem; font-size: 13px; color: var(--muted); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-nav { display: flex; }
.footer-nav a, .footer-inner .footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; }
.footer-nav a, .footer-inner .footer-nav ul li a { color: var(--muted); text-decoration: none; margin-left: 1.5rem; font-size: 13px; }
.footer-nav a:hover, .footer-inner .footer-nav ul li a:hover { color: var(--text); }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
  .hero-title { font-size: 30px; }
}
@media (max-width: 680px) {
  .site-hero { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; }
  .hero-title { font-size: 26px; }
  .main-navigation { display: none; }
  .deals-section, .blog-section { padding: 1.5rem 1.5rem 2rem; }
  .deals-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .blog-grid { grid-template-columns: 1fr; }
  .single-post { padding: 1.5rem 1.5rem 3rem; }
  .post-title { font-size: 24px; }
  .post-featured-img { height: 220px; }
  .post-cta-inner { flex-direction: column; align-items: flex-start; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
