/* =========================================================
   Aegis Vitae — Homepage Tierhilfe (Live)
   ========================================================= */

:root {
  --th-forest: #2c1810;
  --th-moss: #6b4c3b;
  --th-sage: #8b6f5c;
  --th-mist: #e8dfd3;
  --th-birch: #faf6f0;
  --th-ink: #2c1810;
  --th-muted: #6b5c50;
  --th-honey: #c47a3a;
  --th-honey-deep: #a35f28;
  --th-clay: #d4a574;
  --th-white: #ffffff;
  --th-line: rgba(44, 24, 16, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;

  --radius: 1.1rem;
  --shadow-soft: 0 18px 40px rgba(44, 24, 16, 0.08);
  --max: 1120px;
}

body.page-tierhilfe-home {
  font-family: var(--font-body);
  color: var(--th-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(143, 168, 148, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 165, 116, 0.18), transparent 50%),
    var(--th-birch);
}

body.page-tierhilfe-home .site-main {
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}

/* Heller Header → dunkle Schrift (sonst weißer Nav-Text unsichtbar) */
body.page-tierhilfe-home .site-header-public {
  background: rgba(250, 246, 240, 0.96);
  border-bottom: 1px solid var(--th-line);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

body.page-tierhilfe-home .site-header-public .logo,
body.page-tierhilfe-home .site-header-public .logo-title {
  color: var(--th-ink);
}

body.page-tierhilfe-home .site-header-public .logo-sub {
  color: var(--th-honey-deep);
}

body.page-tierhilfe-home .site-header-public .main-nav a {
  color: var(--th-ink);
}

body.page-tierhilfe-home .site-header-public .main-nav a:hover,
body.page-tierhilfe-home .site-header-public .main-nav a.nav-active {
  color: var(--th-honey-deep);
}

body.page-tierhilfe-home .site-header-public .main-nav a.nav-active {
  box-shadow: inset 0 -2px 0 var(--th-honey);
}

body.page-tierhilfe-home .site-header-public .nav-zone-label {
  color: var(--th-muted);
}

body.page-tierhilfe-home .site-header-public .nav-divider {
  background: rgba(44, 24, 16, 0.2);
}

body.page-tierhilfe-home .site-header-public .lang-switcher {
  border-color: rgba(44, 24, 16, 0.22);
}

body.page-tierhilfe-home .site-header-public .lang-switcher:hover,
body.page-tierhilfe-home .site-header-public .lang-switcher:focus-within {
  border-color: var(--th-honey);
}

body.page-tierhilfe-home .site-header-public .lang-switcher-icon {
  color: var(--th-muted);
}

body.page-tierhilfe-home .site-header-public .lang-select {
  color: var(--th-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b5c50' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

body.page-tierhilfe-home .site-header-public .lang-select:hover,
body.page-tierhilfe-home .site-header-public .lang-select:focus {
  color: var(--th-honey-deep);
}

body.page-tierhilfe-home .site-header-public .lang-select option {
  background: var(--th-birch);
  color: var(--th-ink);
}

body.page-tierhilfe-home .site-header-public .btn-outline {
  color: var(--th-ink);
  border-color: rgba(44, 24, 16, 0.35);
  background: transparent;
}

body.page-tierhilfe-home .site-header-public .btn-outline:hover {
  background: rgba(44, 24, 16, 0.06);
  color: var(--th-ink);
  border-color: var(--th-ink);
}

body.page-tierhilfe-home .site-header-public .btn-primary {
  background: var(--th-forest);
  color: #fff;
  box-shadow: none;
}

body.page-tierhilfe-home .site-header-public .btn-primary:hover {
  background: var(--th-moss);
  color: #fff;
}

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

.th-home a {
  color: var(--th-forest);
}

.th-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.th-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-moss);
  margin-bottom: 0.75rem;
}

.th-hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.th-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.th-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: th-ken 18s ease-in-out infinite alternate;
}

@keyframes th-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.th-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 32, 26, 0.42) 0%, rgba(20, 32, 26, 0.62) 40%, rgba(20, 32, 26, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 32, 26, 0.7) 0%, rgba(20, 32, 26, 0.25) 55%, transparent 75%);
}

.th-hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.25rem;
  max-width: 38rem;
  animation: th-rise 0.9s ease both;
}

@keyframes th-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.th-hero .th-eyebrow {
  color: var(--th-clay);
}

.th-hero h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.4rem, 5.5vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.th-hero-lead {
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.6rem;
  max-width: 34rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.th-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.th-btn-heart {
  background: linear-gradient(135deg, #d4894a 0%, var(--th-honey) 55%, #b8682f 100%);
  color: #fff;
  box-shadow:
    0 10px 28px rgba(196, 122, 58, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: th-heartbeat 2.8s ease-in-out infinite;
}

.th-btn-heart:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(196, 122, 58, 0.48);
  color: #fff;
}

.th-btn-heart svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

@keyframes th-heartbeat {
  0%, 100% { box-shadow: 0 10px 28px rgba(196, 122, 58, 0.35); }
  50% { box-shadow: 0 12px 34px rgba(196, 122, 58, 0.55); }
}

.th-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}

.th-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  color: #fff;
}

.th-btn-forest {
  background: var(--th-forest);
  color: #fff;
}

.th-btn-forest:hover {
  background: #243a30;
  transform: translateY(-1px);
  color: #fff;
}

.th-btn-outline {
  background: transparent;
  color: var(--th-forest);
  border-color: var(--th-sage);
}

.th-btn-outline:hover {
  border-color: var(--th-forest);
  background: rgba(44, 24, 16, 0.05);
  color: var(--th-forest);
}

.th-story {
  padding: 4.5rem 0 3rem;
}

.th-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.th-story h2,
.th-section-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
  color: var(--th-forest);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

.th-story p {
  color: var(--th-muted);
  margin: 0 0 1rem;
}

.th-story-figure {
  position: relative;
  border-radius: calc(var(--radius) + 0.35rem);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 320px;
}

.th-story-figure img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.th-story-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(44, 24, 16, 0.78);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.92rem;
}

.th-how {
  padding: 1rem 0 4rem;
}

.th-how-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: var(--th-muted);
}

.th-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: thstep;
}

.th-step {
  position: relative;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  background: var(--th-white);
  border: 1px solid var(--th-line);
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.04);
}

.th-step::before {
  counter-increment: thstep;
  content: counter(thstep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--th-mist);
  color: var(--th-forest);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.th-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--th-forest);
}

.th-step p {
  margin: 0;
  color: var(--th-muted);
  font-size: 0.98rem;
}

.th-projects {
  padding: 3.5rem 0;
  background:
    linear-gradient(180deg, transparent, rgba(143, 168, 148, 0.12) 20%, rgba(143, 168, 148, 0.12) 80%, transparent);
}

.th-projects-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.th-projects-head p {
  margin: 0.35rem 0 0;
  color: var(--th-muted);
  max-width: 28rem;
}

.th-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.th-project {
  display: flex;
  flex-direction: column;
  background: var(--th-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--th-line);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.th-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(44, 24, 16, 0.12);
  color: inherit;
}

.th-project-photo {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--th-mist);
}

.th-project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.th-project:hover .th-project-photo img {
  transform: scale(1.05);
}

.th-project-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.th-project-org {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--th-moss);
}

.th-project h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--th-forest);
}

.th-project p {
  margin: 0;
  color: var(--th-muted);
  font-size: 0.95rem;
  flex: 1;
}

.th-progress {
  margin-top: 0.5rem;
}

.th-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--th-mist);
  overflow: hidden;
}

.th-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--th-moss), var(--th-honey));
}

.th-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--th-muted);
  font-weight: 600;
}

.th-heart-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--th-honey-deep);
  background: rgba(196, 122, 58, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.th-trust {
  padding: 4rem 0;
}

.th-trust-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: calc(var(--radius) + 0.4rem);
  background: var(--th-forest);
  color: var(--th-mist);
  box-shadow: var(--shadow-soft);
}

.th-trust-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  color: #fff;
  margin: 0 0 0.75rem;
}

.th-trust-panel p {
  margin: 0;
  color: rgba(232, 239, 233, 0.88);
}

.th-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.th-trust-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
}

.th-trust-list strong {
  display: block;
  color: #fff;
  margin-bottom: 0.15rem;
}

.th-trust-list span {
  color: rgba(232, 239, 233, 0.8);
  font-size: 0.95rem;
}

.th-dot {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--th-clay);
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.22);
}

.th-org {
  padding: 1rem 0 4.5rem;
}

.th-org-box {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 2.1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--th-sage);
  background: rgba(255, 255, 255, 0.7);
}

.th-org-box h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--th-forest);
  margin: 0 0 0.5rem;
}

.th-org-box p {
  margin: 0;
  color: var(--th-muted);
}

.th-org-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.th-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.th-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .th-story-grid,
  .th-trust-panel,
  .th-org-box,
  .th-steps,
  .th-project-grid {
    grid-template-columns: 1fr;
  }

  .th-org-actions {
    justify-content: flex-start;
  }

  .th-hero {
    min-height: 78vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-hero-media img,
  .th-btn-heart,
  .th-reveal {
    animation: none !important;
    transition: none !important;
  }

  .th-reveal {
    opacity: 1;
    transform: none;
  }
}
