/* ==========================================================================
   CSS RESET & VARIABLES
   ========================================================================== */
:root {
  --primary: #1e3a8a;
  --primary-dark: #172554;
  --accent: #c2410c; /* Kontraststarkes Terracotta für Badges */
  --accent-btn: #d97706; /* Kontraststarkes Amber für Amazon-Buttons */
  --accent-hover: #b45309;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #475569; /* Dunkleres Slate-Grau für besseren Textkontrast */
  --border-color: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 55px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.logo-link:hover .site-logo {
  opacity: 0.85;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  font-weight: 600;
  color: var(--text-main);
}

nav a:hover {
  color: var(--primary);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: 0.2s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-tag {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary-dark);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-main);
  max-width: 750px;
  margin: 0 auto 2rem;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ==========================================================================
   BOOK CARDS & 1:1 MOCKUP WRAPPER
   ========================================================================== */
.book-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.book-card-special {
  border: 2px solid var(--accent-btn);
}

/* 100% WCAG-AA KONTRAST FÜR BADGES */
.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent) !important;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.book-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  position: relative;
}

.book-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.25s ease;
}

.book-card:hover .book-image-wrap img {
  transform: scale(1.04);
}

.book-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.book-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.book-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================================
   BUTTONS (BARRIEREFREI & WCAG KONFORM)
   ========================================================================== */
.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Höchster Kontrast: Dunkler Text auf warmem Amber-Hintergrund */
.btn-amazon {
  background-color: var(--accent-btn) !important;
  color: #0f172a !important;
  border: 1px solid #b45309;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-amazon:hover {
  background-color: var(--accent-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   E-E-A-T TRUST SECTION
   ========================================================================== */
.trust-box {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

.trust-box-author-img {
  text-align: center;
}

.trust-box-author-img img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid #e2e8f0;
}

.author-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #e2e8f0;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.trust-author h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.trust-author span {
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.faq-item h3,
.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #0f172a;
  color: #cbd5e1; /* Höherer Kontrast auf dunklem Hintergrund */
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #cbd5e1;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 768px) {
  .site-logo {
    height: 42px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  nav#primary-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1rem 0;
  }

  nav#primary-navigation.is-active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .trust-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}