:root {
  color-scheme: light;
  --bg: #fcfcfc;
  --fg: #1a1f2e;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --border: #e5e7eb;
  --card: #ffffff;
  --card-hover: #f9fafb;
  --primary: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --primary-fg: #ffffff;
  --accent: #ea580c;
  --accent-light: #f97316;
  --secondary: #f3f4f6;
  --secondary-fg: #374151;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111827;
    --fg: #f3f4f6;
    --muted: #9ca3af;
    --muted-light: #6b7280;
    --border: #374151;
    --card: #1f2937;
    --card-hover: #374151;
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --secondary: #1f2937;
    --secondary-fg: #e5e7eb;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1rem; }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 252, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  header.site { background: rgba(17, 24, 39, 0.95); }
}

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

/* Logo / Brand */
.brand {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .accent { color: var(--accent); }

@media (min-width: 640px) {
  .brand { font-size: 1.25rem; }
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary);
  text-decoration: none;
}

/* Mobile Menu Button */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--fg);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.menu-btn:hover { background: var(--secondary); }

@media (min-width: 768px) {
  .menu-btn { display: none; }
}

/* Hamburger Icon */
.hamburger {
  width: 24px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--fg);
  border-radius: 1px;
  transition: all 0.2s ease;
}

.menu-btn.open .hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-btn.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open .hamburger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.nav-mobile a:hover {
  background: var(--secondary);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}

/* Main Content */
main { min-height: calc(100vh - 180px); }

main > .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 640px) {
  main > .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
  background: linear-gradient(135deg, rgba(29,78,216,0.05) 0%, transparent 50%, rgba(234,88,12,0.05) 100%);
  margin: -2rem -1rem 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .hero {
    padding: 3rem 2rem 4rem;
    margin: -3rem -1.5rem 3rem;
  }
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero .lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

/* Search Form */
.search-form {
  max-width: 480px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-box input {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--card);
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

a.card {
  display: block;
  color: inherit;
}
a.card:hover {
  text-decoration: none;
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Kategorie Cards mit Bildern */
.kategorie-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kategorie-image {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--secondary);
}

@media (min-width: 640px) {
  .kategorie-image { height: 160px; }
}

.kategorie-content {
  padding: 1.25rem;
}

.kategorie-card:hover .kategorie-image {
  filter: brightness(1.05);
}

/* Grid System */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2, .cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3, .cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4, .cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5, .cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6, .cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
  .grid-5, .grid-6, .cols-5, .cols-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .grid-4, .grid-5, .grid-6, .cols-4, .cols-5, .cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-3, .grid-4, .grid-5, .grid-6, .cols-3, .cols-4, .cols-5, .cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6, .cols-2, .cols-3, .cols-4, .cols-5, .cols-6 { grid-template-columns: 1fr; }
}

.grid-gap-lg { gap: 1.5rem; }

/* Detail Layout (2 cols auf Desktop) */
.detail-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .detail-grid {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: 350px 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--secondary);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-cta {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  border: none;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Affiliate CTA Box */
.affiliate-cta {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.affiliate-cta-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.affiliate-cta-icon {
  font-size: 2rem;
  line-height: 1;
}

.affiliate-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.affiliate-cta-text strong {
  color: #166534;
  font-size: 1.125rem;
}

.affiliate-cta-text span {
  color: #15803d;
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .affiliate-cta {
    flex-direction: column;
    text-align: center;
  }
  
  .affiliate-cta-content {
    flex-direction: column;
  }
  
  .affiliate-cta .btn-cta {
    width: 100%;
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-fg);
  border: 1px solid var(--border);
}

.badge-status {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

/* Muted Text */
.muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Sections */
.section { padding: 3rem 0; }
.section-muted { background: var(--secondary); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* CTA Section */
.cta-section {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 3rem 1rem;
  text-align: center;
  margin: 3rem 0 0;
}
.cta-section h2 { color: inherit; }
.cta-section p { color: rgba(255,255,255,0.85); }

.cta-section .btn {
  background: var(--card);
  color: var(--primary);
  border-color: var(--card);
}
.cta-section .btn:hover {
  background: var(--secondary);
}

/* Cover Images */
.cover-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--secondary);
}

.cover-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--border) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 3rem;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Info Grid (für Details) */
.info-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.info-card {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 1rem;
}
.info-card .label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.info-card .value {
  font-weight: 600;
  color: var(--fg);
}

/* Form Elements */
input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--card);
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}

.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  background: var(--secondary);
  margin-top: 3rem;
}

.footer-inner {
  padding: 3rem 0 2rem;
}

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

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--fg);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.cookie-content h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-question {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.faq-answer {
  color: var(--muted);
  line-height: 1.6;
}

/* Prose (für lange Texte) */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.prose li { margin-bottom: 0.5rem; }

/* Stats Counter */
.stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.stat {
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}
