/* =========================================================
   BARRELBEN — Design-System
   Palette: warmes Creme + Schwarz + Terrakotta (passend zum Logo)
   Modern, minimalistisch, viel Weißraum
   ========================================================= */

:root {
  --bg: #f6ead8;
  --bg-alt: #efe0c7;
  --bg-card: #fffbf3;
  --text: #201c18;
  --text-muted: #7c7167;
  --accent: #201c18;        /* Schwarz, für Buttons/Rahmen */
  --accent-bright: #a15b34; /* Terrakotta, für Hover/Highlights */
  --accent-2: #a15b34;
  --line: rgba(32, 28, 24, 0.13);
  --radius: 4px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
}

.brand span { color: var(--accent-bright); }

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--accent-bright); }

/* ---------- Label / Eyebrow (Signatur-Element) ---------- */

.label-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent-bright);
  padding: 5px 12px;
  border-radius: 2px;
  transform: rotate(-1deg);
  margin-bottom: 14px;
}

.label-tag.alt {
  background: transparent;
  color: var(--accent-bright);
  border: 1px solid var(--accent);
  transform: rotate(1deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 30px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost:hover { background: rgba(32, 28, 24, 0.06); }

/* ---------- Category grid ---------- */

.section { padding: 64px 0; }
.section-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  margin: 0 0 8px;
}
.section-sub {
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 60ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: block;
}
.card:hover { border-color: var(--accent-bright); transform: translateY(-2px); }

.card h3 {
  font-family: var(--serif);
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Article list ---------- */

.post-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.post-row:hover .post-title { color: var(--accent-bright); }
.post-title { font-family: var(--serif); font-size: 1.15rem; }
.post-meta { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }

/* ---------- Article page ---------- */

article.post {
  padding: 70px 0 40px;
}

article.post header.post-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

article.post h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 14px;
  line-height: 1.15;
}

.post-sub { color: var(--text-muted); font-size: 1.05rem; }

.post-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 44px 0 16px;
}
.post-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: var(--accent-bright);
}
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; }

.insider-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent-bright);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 30px 0;
}
.insider-box p:last-child { margin-bottom: 0; }

.fill-me {
  border: 1px dashed var(--accent-bright);
  background: rgba(161, 91, 52, 0.08);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--accent-bright);
  margin: 18px 0;
}

/* ---------- Ad slots ---------- */

.ad-slot {
  border: 1px dashed var(--text-muted);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 40px 0;
  background: rgba(32, 28, 24, 0.035);
}
.ad-slot span { display: block; margin-top: 4px; opacity: 0.7; }

/* ---------- Product / affiliate box ---------- */

.product-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.product-image {
  width: 112px;
  min-width: 112px;
  height: 150px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--accent-bright);
  border-radius: var(--radius);
  background: var(--bg);
}
.product-box .info { flex: 1; min-width: 180px; }
.product-box h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.1rem; }
.product-box p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.product-price {
  margin-top: 10px !important;
  color: var(--text) !important;
  font-family: var(--serif);
  font-size: 1.15rem !important;
  font-weight: 700;
}
.price-date {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
}
.price-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent-bright);
  background: rgba(161, 91, 52, 0.08);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.price-note strong { color: var(--text); }

/* ---------- Quiz ---------- */

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 20px;
}
.quiz-card h3 { font-family: var(--serif); margin-top: 0; }
.quiz-options { display: grid; gap: 10px; margin-top: 16px; }
.quiz-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
}
.quiz-options label:hover { border-color: var(--accent-bright); }
.quiz-options input { accent-color: var(--accent-bright); }

#quiz-result { display: none; }

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer.site-footer .foot-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer.site-footer a { color: var(--text-muted); text-decoration: none; }
footer.site-footer a:hover { color: var(--accent-bright); }
footer .disclaimer { max-width: 60ch; margin-top: 16px; opacity: 0.8; }

@media (max-width: 600px) {
  .hero { padding: 60px 0 40px; }
  .section { padding: 44px 0; }
  .product-image { width: 100%; height: 220px; object-fit: contain; }
}
