/*
Theme Name: TieferSchlafen
Theme URI: https://tieferschlafen.de
Author: Tobias Löffler
Author URI: https://tieferschlafen.de
Description: Ruhiges, schlaf-optimiertes Design für den Schlaf-Ratgeber-Blog TieferSchlafen.de. Tiefes Nachtblau, warmes Mondlicht-Creme, beruhigende Typografie.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tieferschlafen
Tags: blog, affiliate, sleep, german, responsive
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  /* Farbpalette */
  --color-night:        #0d1b2a;   /* Tiefes Nachtblau - Haupthintergrund */
  --color-midnight:     #1a2942;   /* Etwas helleres Nachtblau */
  --color-dusk:         #243554;   /* Dämmerungsblau - Cards/Panels */
  --color-moonlight:    #f0e8d8;   /* Mondlicht-Creme - Haupttext */
  --color-cream:        #faf5ec;   /* Helles Creme - Hintergrund hell */
  --color-gold:         #d4a843;   /* Warmes Gold - Akzent/CTAs */
  --color-gold-soft:    #e8c47a;   /* Sanftes Gold */
  --color-star:         #7ba7bc;   /* Sternenlicht-Blau - Links */
  --color-star-soft:    #a8c5d6;   /* Sanftes Hellblau */
  --color-text-muted:   #8899aa;   /* Gedämpfter Text */
  --color-border:       #263852;   /* Borders */
  --color-white:        #ffffff;

  /* Typografie */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  /* Breiten */
  --container-max: 1200px;
  --content-max:   780px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.45s ease;

  /* Schatten */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 32px rgba(212,168,67,0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-moonlight);
  background-color: var(--color-night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-star);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold);
}

ul, ol {
  padding-left: 1.5rem;
}

/* =============================================
   TYPOGRAFIE
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-moonlight);
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--color-moonlight);
}

strong, b {
  font-weight: 700;
  color: var(--color-cream);
}

em, i {
  font-style: italic;
}

blockquote {
  border-left: 3px solid var(--color-gold);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--color-midnight);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-star-soft);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-midnight);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--color-gold-soft);
}

pre {
  background: var(--color-midnight);
  padding: var(--space-lg);
  border-radius: 8px;
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

/* =============================================
   LAYOUT CONTAINER
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding: var(--space-2xl) 0;
}

/* Zweispaltig: Content + Sidebar */
.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 900px) {
  .content-area {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-moonlight);
  letter-spacing: -0.01em;
}

.site-logo .logo-tagline {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--space-xl);
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--color-moonlight);
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-moonlight);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-midnight);
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: var(--space-md);
  }

  .main-nav a {
    font-size: 1rem;
  }
}

/* =============================================
   HERO / STARTSEITE BANNER
   ============================================= */
.hero-section {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2942 50%, #0f2035 100%);
  padding: var(--space-3xl) 0;
}

/* Sternenhimmel-Effekt */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 70%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 85%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 15%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 55%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 25%, rgba(255,255,255,0.5) 0%, transparent 100%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-night));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  padding: 0.3em 0.8em;
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 100px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-family: var(--font-heading);
  color: var(--color-cream);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--color-gold);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-star-soft);
  margin-bottom: var(--space-xl);
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.75em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-night);
}

.btn-primary:hover {
  background: var(--color-gold-soft);
  color: var(--color-night);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,67,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-moonlight);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-star);
  color: var(--color-star-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5em 1.2em;
  font-size: 0.8rem;
}

/* =============================================
   POST CARDS / BLOG ÜBERSICHT
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.posts-grid.list-view {
  grid-template-columns: 1fr;
}

.post-card {
  background: var(--color-midnight);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,168,67,0.25);
}

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-dusk);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--color-moonlight);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--color-gold);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-md);
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.post-card-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================
   EINZELNER BEITRAG
   ============================================= */
.single-post-header {
  margin-bottom: var(--space-2xl);
}

.single-post-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.single-post-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.single-post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-image {
  margin-bottom: var(--space-xl);
  border-radius: 12px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Post Content Formatting */
.post-content h2 {
  font-size: 1.8rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  color: var(--color-cream);
}

.post-content h3 {
  font-size: 1.4rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-moonlight);
}

.post-content h4 {
  font-size: 1.15rem;
  margin-top: var(--space-lg);
  color: var(--color-moonlight);
}

.post-content p,
.post-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-moonlight);
  margin-bottom: var(--space-md);
}

.post-content ul, .post-content ol {
  margin-bottom: var(--space-md);
}

.post-content a {
  color: var(--color-star);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover {
  color: var(--color-gold);
}

.post-content img {
  border-radius: 8px;
  margin: var(--space-xl) 0;
}

/* Tabellen */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: 0.92rem;
  background: var(--color-midnight);
  border-radius: 8px;
  overflow: hidden;
}

.post-content th {
  background: var(--color-dusk);
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
  color: var(--color-moonlight);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-content td {
  padding: 0.65em 1em;
  border-top: 1px solid var(--color-border);
  color: var(--color-moonlight);
}

.post-content tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* =============================================
   AFFILIATE / PRODUKTEMPFEHLUNG BOXEN
   ============================================= */
.product-box {
  background: linear-gradient(135deg, var(--color-midnight) 0%, var(--color-dusk) 100%);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: 12px;
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.product-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.product-box-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-night);
  background: var(--color-gold);
  padding: 0.25em 0.75em;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.product-box-title {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.product-box-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.stars {
  color: var(--color-gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

.rating-number {
  font-weight: 700;
  color: var(--color-gold);
}

.rating-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.product-box-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

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

.pros, .cons {
  font-size: 0.88rem;
}

.pros h4 {
  color: #5cb85c;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

.cons h4 {
  color: #d9534f;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
}

.pros li::before { content: '✓ '; color: #5cb85c; font-weight: 700; }
.cons li::before { content: '✗ '; color: #d9534f; font-weight: 700; }

.pros li, .cons li {
  margin-bottom: 0.4em;
  line-height: 1.5;
  color: var(--color-moonlight);
}

.product-box-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin: var(--space-md) 0;
}

.product-box-price .price-note {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.product-box-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-md);
}

.affiliate-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  font-style: italic;
}

/* Vergleichstabelle */
.comparison-table-wrap {
  overflow-x: auto;
  margin: var(--space-xl) 0;
}

.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--color-midnight);
  border-radius: 10px;
  overflow: hidden;
}

.comparison-table th {
  background: var(--color-dusk);
  padding: 1em;
  font-weight: 700;
  text-align: center;
  color: var(--color-moonlight);
  font-size: 0.9rem;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: 0.75em 1em;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-moonlight);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table .winner {
  color: var(--color-gold);
  font-weight: 700;
}

.comparison-table .winner-col th {
  background: linear-gradient(180deg, rgba(212,168,67,0.2), rgba(212,168,67,0.05));
  color: var(--color-gold);
}

.comparison-table .check { color: #5cb85c; }
.comparison-table .cross { color: #d9534f; }

/* =============================================
   INFO / TIPP BOXEN
   ============================================= */
.info-box {
  padding: var(--space-lg);
  border-radius: 10px;
  margin: var(--space-xl) 0;
  display: flex;
  gap: var(--space-md);
}

.info-box-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box-content p:last-child { margin-bottom: 0; }

.info-box.tip {
  background: rgba(93,184,93,0.08);
  border: 1px solid rgba(93,184,93,0.2);
}

.info-box.warning {
  background: rgba(240,173,78,0.08);
  border: 1px solid rgba(240,173,78,0.2);
}

.info-box.info {
  background: rgba(123,167,188,0.08);
  border: 1px solid rgba(123,167,188,0.2);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--color-midnight);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--color-dusk), var(--color-midnight));
  border-color: rgba(212,168,67,0.2);
}

.newsletter-form {
  margin-top: var(--space-md);
}

.form-input {
  width: 100%;
  padding: 0.7em 1em;
  background: var(--color-night);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-moonlight);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  transition: border-color var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

/* Kategorien-Widget */
.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  border-top: 1px solid var(--color-border);
}

.category-list li:first-child {
  border-top: none;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6em 0;
  color: var(--color-moonlight);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.category-list a:hover {
  color: var(--color-gold);
}

.category-count {
  background: var(--color-dusk);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  padding: 0.15em 0.5em;
  border-radius: 100px;
}

/* Letzte Artikel Widget */
.recent-posts-list {
  list-style: none;
  padding: 0;
}

.recent-post-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
}

.recent-post-item:first-child { border-top: none; }

.recent-post-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--color-dusk);
}

.recent-post-info a {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--color-moonlight);
  display: block;
  margin-bottom: 3px;
}

.recent-post-info a:hover { color: var(--color-gold); }

.recent-post-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--color-midnight);
  border: 1px solid var(--color-border);
  color: var(--color-moonlight);
  text-decoration: none;
  transition: all var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--color-gold);
  color: var(--color-night);
  border-color: var(--color-gold);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-midnight);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

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

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

.footer-brand .site-logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-moonlight);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
}

.footer-legal-links a {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-legal-links a:hover {
  color: var(--color-moonlight);
}

/* Affiliate Disclaimer im Footer */
.affiliate-disclaimer {
  background: var(--color-dusk);
  border-radius: 8px;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  border: 1px solid var(--color-border);
}

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-gold);
}

.breadcrumbs .separator {
  color: var(--color-border);
}

.breadcrumbs .current {
  color: var(--color-moonlight);
}

/* =============================================
   SCHLAGZEILEN / BADGES / LABELS
   ============================================= */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 4px;
}

.badge-new    { background: rgba(93,184,93,0.15); color: #5cb85c; border: 1px solid rgba(93,184,93,0.3); }
.badge-top    { background: rgba(212,168,67,0.15); color: var(--color-gold); border: 1px solid rgba(212,168,67,0.3); }
.badge-test   { background: rgba(123,167,188,0.15); color: var(--color-star); border: 1px solid rgba(123,167,188,0.3); }

/* =============================================
   TOC - INHALTSVERZEICHNIS
   ============================================= */
.toc-box {
  background: var(--color-midnight);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.toc-list {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  margin-bottom: 0.4em;
}

.toc-list a {
  font-size: 0.9rem;
  color: var(--color-star);
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.toc-list a::before {
  content: counter(toc) ".";
  color: var(--color-text-muted);
  font-size: 0.8em;
  flex-shrink: 0;
  min-width: 1.5em;
}

.toc-list a:hover {
  color: var(--color-gold);
}

/* =============================================
   SCORES / BEWERTUNGS-ELEMENTE
   ============================================= */
.score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  background: rgba(212,168,67,0.08);
  flex-shrink: 0;
}

.score-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.score-label {
  font-size: 0.6rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   SEARCH
   ============================================= */
.search-form {
  display: flex;
  gap: 0;
}

.search-form .form-input {
  border-radius: 6px 0 0 6px;
  margin-bottom: 0;
  flex: 1;
}

.search-form .btn {
  border-radius: 0 6px 6px 0;
  padding: 0.7em 1.2em;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.text-gold   { color: var(--color-gold); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   GUTENBERG EDITOR UNTERSTÜTZUNG
   ============================================= */
.wp-block-image img { border-radius: 8px; }
.wp-block-quote { border-left: 3px solid var(--color-gold); background: var(--color-midnight); border-radius: 0 8px 8px 0; padding: var(--space-md) var(--space-lg); }
.wp-block-separator { border-color: var(--color-border); }

/* =============================================
   RESPONSIVE ANPASSUNGEN
   ============================================= */
@media (max-width: 768px) {
  .hero-section { min-height: 420px; padding: var(--space-2xl) 0; }
  .posts-grid { grid-template-columns: 1fr; }
  .product-box { padding: var(--space-md); }
  .footer-grid { gap: var(--space-lg); }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .single-post-meta { flex-direction: column; gap: var(--space-sm); }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  .site-header, .site-footer, .sidebar, .menu-toggle { display: none; }
  .content-area { grid-template-columns: 1fr; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
