/*
Theme Name:   TierBarf Child
Description:  GeneratePress Child Theme für tierbarf.de
Author:       tierbarf.de
Template:     generatepress
Version:      1.0.0
Text Domain:  tierbarf-child
*/

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --bone:        #F5EFE0;
  --cream:       #FAF6EE;
  --bark:        #3D2B1F;
  --bark-light:  #6B4A38;
  --meat:        #C0412A;
  --meat-dark:   #8C2E1C;
  --grass:       #5A7A4A;
  --sand:        #D4B896;
  --sand-light:  #EAD9C4;
  --white:       #FFFFFF;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', sans-serif;
  --radius:      4px;
  --shadow:      0 4px 24px rgba(61,43,31,.12);
  --shadow-lg:   0 12px 48px rgba(61,43,31,.18);
}

/* ═══════════════════════════════════════════════
   BASE RESET & TYPOGRAPHY
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--bark);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.1;
  margin: 0 0 .6em;
}

p { line-height: 1.75; margin: 0 0 1.2em; }
a { color: var(--meat); text-decoration: none; }
a:hover { color: var(--meat-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════
   GENERATPRESS OVERRIDES
═══════════════════════════════════════════════ */
.site-header { display: none; }
.site-footer { display: none; }
.site-content { padding: 0 !important; margin: 0 !important; }
.inside-article { padding: 0 !important; }
.entry-content { margin: 0 !important; }
.entry-header { display: none; }
.page .entry-content > p:first-child { display: none; }

/* ═══════════════════════════════════════════════
   CUSTOM NAV
═══════════════════════════════════════════════ */
.tb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s;
}
.tb-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.tb-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--bone);
  text-decoration: none;
  letter-spacing: .02em;
}
.tb-logo span { color: var(--meat); font-style: italic; }
.tb-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.tb-nav-links a {
  color: var(--sand);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
  text-decoration: none;
}
.tb-nav-links a:hover { color: var(--bone); }
.tb-nav-cta {
  background: var(--meat) !important;
  color: var(--bone) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
  transition: background .2s !important;
}
.tb-nav-cta:hover { background: var(--meat-dark) !important; }
.tb-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.tb-hamburger span { width: 24px; height: 2px; background: var(--bone); display: block; transition: .3s; }

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
.tb-hero {
  margin-top: 68px;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.tb-hero-left {
  background: var(--bark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px;
  position: relative;
}
.tb-hero-left::after {
  content: '';
  position: absolute;
  right: -50px; top: 0; bottom: 0;
  width: 100px;
  background: var(--bark);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  z-index: 2;
}
.tb-hero-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--meat);
  font-weight: 500;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .6s .1s ease forwards;
}
.tb-hero-tag::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--meat);
}
.tb-hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 68px);
  color: var(--bone);
  line-height: 1.05;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .6s .25s ease forwards;
}
.tb-hero-h1 em { color: var(--meat); font-style: italic; }
.tb-hero-sub {
  color: var(--sand);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  max-width: 400px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp .6s .4s ease forwards;
}
.tb-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .6s .55s ease forwards;
}
.tb-hero-right {
  background: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
}

/* ═══════════════════════════════════════════════
   STAT BAR
═══════════════════════════════════════════════ */
.tb-stats {
  background: var(--bark);
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,.06);
}
.tb-stat {
  padding: 24px 40px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.tb-stat:last-child { border-right: none; }
.tb-stat-num {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--meat);
  line-height: 1;
  margin-bottom: 6px;
}
.tb-stat-lbl {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ═══════════════════════════════════════════════
   SECTION WRAPPERS
═══════════════════════════════════════════════ */
.tb-section {
  padding: 100px 0;
}
.tb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}
.tb-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--meat);
  font-weight: 500;
  margin-bottom: 16px;
}
.tb-section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--meat);
}
.tb-section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--bark);
  margin-bottom: 24px;
}
.tb-section-h2 em { color: var(--meat); font-style: italic; }

/* ═══════════════════════════════════════════════
   WAS IST BARF SECTION
═══════════════════════════════════════════════ */
.tb-barf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-top: 64px;
}
.tb-barf-text p {
  font-size: 16px;
  color: var(--bark-light);
  font-weight: 300;
}
.tb-barf-text strong { color: var(--bark); font-weight: 500; }
.tb-acronym {
  background: var(--bark);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.tb-acronym-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.tb-acronym-row:last-child { border-bottom: none; }
.tb-acronym-letter {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--meat);
  width: 36px;
  flex-shrink: 0;
  line-height: 1;
}
.tb-acronym-word { color: var(--bone); font-size: 16px; font-weight: 500; }
.tb-acronym-de { color: var(--sand); font-size: 13px; margin-top: 2px; font-weight: 300; }

/* ═══════════════════════════════════════════════
   KOMPONENTEN SECTION (dark bg)
═══════════════════════════════════════════════ */
.tb-dark-section {
  background: var(--bark);
  padding: 100px 0;
}
.tb-dark-section .tb-section-h2 { color: var(--bone); }
.tb-dark-section .tb-section-label { color: var(--meat); }
.tb-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.tb-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: background .2s, transform .25s;
}
.tb-card:hover { background: rgba(255,255,255,.1); transform: translateY(-6px); }
.tb-card-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.tb-card-pct {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--meat);
  font-weight: 700;
  margin-bottom: 6px;
}
.tb-card-title { font-family: var(--font-serif); font-size: 17px; color: var(--bone); margin-bottom: 10px; }
.tb-card-desc { font-size: 12px; color: var(--sand); line-height: 1.65; }

/* ═══════════════════════════════════════════════
   VORTEILE
═══════════════════════════════════════════════ */
.tb-vorteile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
.tb-vorteil {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--sand-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--meat);
  transition: transform .2s;
}
.tb-vorteil:hover { transform: translateX(6px); }
.tb-vorteil-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.tb-vorteil h3 { font-family: var(--font-serif); font-size: 18px; color: var(--bark); margin-bottom: 8px; }
.tb-vorteil p { font-size: 14px; color: var(--bark-light); line-height: 1.7; font-weight: 300; margin: 0; }

/* ═══════════════════════════════════════════════
   E-MAIL OPT-IN SECTION
═══════════════════════════════════════════════ */
.tb-optin {
  background: var(--meat);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.tb-optin::before {
  content: 'BARF';
  position: absolute;
  font-family: var(--font-serif);
  font-size: 300px;
  font-weight: 700;
  color: rgba(255,255,255,.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
}
.tb-optin-inner { text-align: center; position: relative; z-index: 1; }
.tb-optin h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 52px);
  color: var(--bone);
  margin-bottom: 16px;
}
.tb-optin-sub {
  color: rgba(245,239,224,.8);
  font-size: 18px;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 48px;
}
.tb-optin-guide {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 40px;
  padding: 10px 20px;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--bone);
}
/* Brevo / Mailchimp form override */
.tb-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  overflow: hidden;
}
.tb-form input[type="email"] {
  flex: 1;
  padding: 16px 24px;
  font-size: 15px;
  font-family: var(--font-sans);
  border: none;
  background: var(--bone);
  color: var(--bark);
  outline: none;
}
.tb-form input[type="email"]::placeholder { color: var(--sand); }
.tb-form button {
  background: var(--bark);
  color: var(--bone);
  border: none;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .2s;
  white-space: nowrap;
}
.tb-form button:hover { background: var(--meat-dark); }
.tb-optin-fine {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(245,239,224,.5);
}

/* ═══════════════════════════════════════════════
   CUSTOM FOOTER
═══════════════════════════════════════════════ */
.tb-footer {
  background: var(--bark);
  padding: 48px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.06);
}
.tb-footer-logo { font-family: var(--font-serif); font-size: 20px; color: var(--bone); }
.tb-footer-logo span { color: var(--meat); font-style: italic; }
.tb-footer-links { display: flex; gap: 28px; }
.tb-footer-links a { color: var(--sand); font-size: 13px; text-decoration: none; transition: color .2s; }
.tb-footer-links a:hover { color: var(--bone); }
.tb-footer-note { color: var(--bark-light); font-size: 12px; }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.tb-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s, color .2s;
  font-family: var(--font-sans);
  border: none;
}
.tb-btn:hover { transform: translateY(-2px); }
.tb-btn-primary { background: var(--meat); color: var(--bone); }
.tb-btn-primary:hover { background: var(--meat-dark); color: var(--bone); }
.tb-btn-outline { background: transparent; color: var(--sand); border: 1px solid var(--bark-light); }
.tb-btn-outline:hover { border-color: var(--sand); color: var(--bone); }
.tb-btn-white { background: var(--bone); color: var(--meat-dark); }
.tb-btn-white:hover { background: var(--cream); color: var(--meat-dark); }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tb-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.tb-reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tb-cards { grid-template-columns: repeat(3, 1fr); }
  .tb-cards .tb-card:nth-child(4),
  .tb-cards .tb-card:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 900px) {
  .tb-nav { padding: 0 24px; }
  .tb-nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bark); padding: 24px; gap: 20px; }
  .tb-nav-links.open { display: flex; }
  .tb-hamburger { display: flex; }

  .tb-hero { grid-template-columns: 1fr; }
  .tb-hero-right { display: none; }
  .tb-hero-left { padding: 60px 32px; }
  .tb-hero-left::after { display: none; }

  .tb-stats { flex-wrap: wrap; }
  .tb-stat { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }

  .tb-container { padding: 0 24px; }
  .tb-section { padding: 64px 0; }
  .tb-dark-section { padding: 64px 0; }

  .tb-barf-grid { grid-template-columns: 1fr; gap: 40px; }
  .tb-cards { grid-template-columns: 1fr 1fr; }
  .tb-vorteile { grid-template-columns: 1fr; }

  .tb-form { flex-direction: column; border-radius: var(--radius); }
  .tb-form input[type="email"] { border-radius: var(--radius) var(--radius) 0 0; }
  .tb-form button { border-radius: 0 0 var(--radius) var(--radius); }

  .tb-footer { flex-direction: column; gap: 24px; text-align: center; padding: 40px 24px; }
  .tb-footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 520px) {
  .tb-cards { grid-template-columns: 1fr; }
}
