/* Gesund & Wertvoll – Hörecke
   Markenfarben & Regeln aus design_branding_regeln.md / feedback_design_details.md */

:root {
  --green-accent: #4a8830;
  --green-dark: #2c6a1f;
  --green-light: #8fee90;
  --bg: #f7f6f3;
  --text: #33352f;
  --text-soft: #5a5c54;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .brand-heading {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  color: var(--green-dark);
  margin: 0 0 0.6em 0;
  max-width: 40ch;
}

p { max-width: 65ch; }

a { color: var(--green-dark); }

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

/* Nur für Screenreader/SEO sichtbar, visuell ausgeblendet —
   für Fälle, in denen der Titeltext schon im Bild steht (kein Duplikat nötig) */
.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;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 6vw;
}

.site-header img.logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.site-header .brand-name {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  color: var(--green-dark);
  font-size: 1.2rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 6vw 20px;
}

.hero h1 {
  margin: 0 auto 0.4em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero p.subtitle {
  font-style: italic;
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0 auto;
}

/* Titelbild: feste Blogbanner-Maße (siehe design_branding_regeln.md)
   Desktop 2920x584px (5:1), Mobil 1500x600px (2.5:1) — via <picture> ausgespielt */
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 2px solid var(--green-dark);
  margin: 28px 0;
}

/* Book grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding: 20px 6vw 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ab Desktop-Breite fest 4 Kacheln pro Reihe, darunter bleibt es fluessig */
@media (min-width: 1000px) {
  .book-grid { grid-template-columns: repeat(4, 1fr); }
}

.book-card {
  background: #fff;
  border: 2px solid var(--green-dark);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease;
}

.book-card:hover { transform: translateY(-4px); }

.book-card .cover {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 2px solid var(--green-dark);
}

.book-card .card-body {
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.book-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.book-card .teaser {
  font-size: 0.95rem;
  color: var(--text-soft);
  flex: 1;
}

.book-card .card-cta {
  align-self: flex-start;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  color: var(--green-dark);
}

.book-card.placeholder {
  opacity: 0.75;
  border-style: dashed;
}

.badge-soon {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--green-accent);
  color: var(--green-light) !important;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 14px;
  border: 2px solid var(--green-dark);
  text-align: center;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--green-dark) !important;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 14px;
  border: 2px solid var(--green-dark);
  text-align: center;
}

/* Detail page */
/* Detailseiten-Titelbild: einheitlich 1500x600px (siehe design_branding_regeln.md) */
.detail-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 6vw 0;
}

.detail-hero img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 2px solid var(--green-dark);
}

.detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 6vw 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

@media (max-width: 720px) {
  .detail-wrap { grid-template-columns: 1fr; }
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-sidebar .cover {
  border-radius: 18px;
  border: 2px solid var(--green-dark);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.back-link {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.detail-content h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.detail-content .headline {
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 1.2em;
}

.detail-content p { margin: 0 0 1.1em; }

/* Einspaltiges Layout fuer Detailseiten MIT eigenem Titelbanner —
   Sidebar/Cover entfaellt dann, das Banner traegt die visuelle Identitaet */
.detail-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 6vw 20px;
}

.detail-single .cta-top {
  margin: 6px 0 30px;
}

.platforms-section {
  padding: 10px 6vw 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green-accent);
  color: var(--green-light) !important;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 10px;
  border-radius: 14px;
  border: 2px solid var(--green-dark);
  text-align: center;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 6vw 40px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.site-footer a { color: var(--text-soft); margin: 0 8px; }

/* COOKIE-BANNER — Consent Mode v2 (Pflicht seit Maerz 2024, EWR)
   1:1 uebernommen aus dem Beratungsseiten-/Blog-Pattern, siehe landingpage_cookie_consent_status.md */
.guw-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: #fff; border-top: 1px solid #e0ddd6;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 18px 24px; display: none;
}
.guw-cookie-banner.guw-visible { display: block; }
.guw-cookie-inner {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.guw-cookie-text { margin: 0; font-family: 'Roboto', sans-serif; font-size: 0.92rem; color: #333; flex: 1 1 320px; }
.guw-cookie-text a { color: #5a8a6a; text-decoration: underline; }
.guw-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.guw-cookie-btn { border: none; border-radius: 10px; padding: 10px 20px; font-family: 'Nunito Sans', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.guw-cookie-btn-primary { background: #4a8830; color: #fff; font-weight: 800; box-shadow: 0 2px 8px rgba(74,136,48,0.35); }
.guw-cookie-btn-primary:hover { background: #2c6a1f; }
.guw-cookie-btn-secondary { background: transparent; color: #888; border: 1px solid #ddd; }
.guw-cookie-btn-secondary:hover { background: #f7f6f3; color: #555; }
@media (max-width: 600px) {
  .guw-cookie-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .guw-cookie-actions { justify-content: center; }
}
