/*
Theme Name: Leben Lassen
Theme URI: https://tierschutzverein-lebenlassen.com
Author: Tierschutzverein Leben Lassen
Description: Custom Theme für den Tierschutzverein Leben Lassen - Gnadenhof in Brand-Laaben, Niederösterreich.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: lebenlassen
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2d5016;
  --primary-light: #4a7c28;
  --primary-dark: #1a3009;
  --accent: #d4a843;
  --accent-light: #e8c96e;
  --warm: #f5f0e8;
  --warm-dark: #e8dfd0;
  --text: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--warm);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Layout ===== */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 896px; margin: 0 auto; padding: 0 1rem; }
main { flex: 1; }

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.2; color: var(--primary-dark); }
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 1.75rem; }
}

/* ===== Header ===== */
.site-header {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
}
.site-logo img {
  height: 48px;
  width: auto;
}

/* Social icons */
.social-icons { display: flex; align-items: center; gap: 0.75rem; }
.social-icons a { color: var(--white); opacity: 0.7; transition: opacity 0.2s; }
.social-icons a:hover { opacity: 1; color: var(--accent-light); }
.nav-divider { width: 1px; height: 1.25rem; background: rgba(255,255,255,0.3); }

/* Desktop nav */
.main-nav { display: none; gap: 1.5rem; align-items: center; }
.main-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--white);
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none !important; }
}

/* Mobile nav */
.menu-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-nav {
  display: none;
  padding: 0 1rem 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--white);
  transition: color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--accent); }

/* ===== Footer ===== */
.site-footer { background: var(--primary-dark); color: var(--white); }

.footer-newsletter {
  background: var(--primary);
  padding: 2.5rem 0;
  text-align: center;
}
.footer-newsletter h3 { color: var(--white); margin-bottom: 1rem; }
.footer-newsletter p { font-size: 0.875rem; opacity: 0.9; margin-bottom: 1.5rem; }
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: none;
  font-size: 0.875rem;
  color: var(--text);
}
.newsletter-form button {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--accent-light); }

@media (min-width: 640px) {
  .newsletter-form { flex-direction: row; }
}

.footer-info {
  padding: 2rem 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-grid h4 { font-weight: 700; margin-bottom: 0.75rem; color: var(--white); }
.footer-grid a { transition: color 0.2s; }
.footer-grid a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-accent:hover { background: var(--accent-light); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover { background: rgba(45,80,22,0.05); }

/* ===== Hero Section ===== */
.hero {
  background: var(--primary);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero .subtitle { font-size: 1.125rem; opacity: 0.9; margin-bottom: 1rem; }
.hero .description { opacity: 0.8; max-width: 42rem; margin: 0 auto 2rem; }
.hero .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Page hero (smaller) */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { opacity: 0.9; }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-white { background: var(--white); }
.section-title { margin-bottom: 1rem; }
.section-text { color: var(--text-light); max-width: 48rem; margin-bottom: 2rem; }

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.5rem; }

/* ===== Animal Cards ===== */
.animals-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .animals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .animals-grid { grid-template-columns: repeat(3, 1fr); } }
.animals-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .animals-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.animal-card { display: block; }
.animal-card .card-image {
  aspect-ratio: 4/3;
  background: rgba(74,124,40,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.animal-card .card-image img { width: 100%; height: 100%; object-fit: cover; }
.animal-card .card-image .placeholder { font-size: 2.5rem; }
.animal-card h3 { transition: color 0.2s; }
.animal-card:hover h3 { color: var(--primary-light); }
.animal-card .species { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }
.animal-card .subtitle { font-size: 0.875rem; color: var(--text-light); font-style: italic; }
.animal-card .sponsorship { margin-top: 0.5rem; font-size: 0.875rem; color: var(--accent); font-weight: 600; }

/* ===== Single Animal ===== */
.animal-detail .card-image {
  aspect-ratio: 16/9;
  background: rgba(74,124,40,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.animal-detail .card-image img { width: 100%; height: 100%; object-fit: cover; }
.animal-detail .meta-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) { .animal-detail .meta-grid { grid-template-columns: repeat(2, 1fr); } }
.animal-detail .meta-item {
  background: var(--warm);
  border-radius: 0.25rem;
  padding: 0.75rem;
}
.animal-detail .meta-item strong { font-weight: 600; }
.animal-detail .content { margin-bottom: 2rem; line-height: 1.8; }
.animal-detail .content p { margin-bottom: 1rem; }

/* Related animals */
.related-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: var(--shadow-md); }
.related-card .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.related-card .name { font-weight: 700; }
.related-card .subtitle { font-size: 0.875rem; color: var(--text-light); }

/* ===== Info Boxes ===== */
.info-box {
  background: var(--warm);
  border-radius: 0.25rem;
  padding: 1rem;
}

/* ===== Grid layouts ===== */
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ===== Steps ===== */
.steps { display: flex; flex-direction: column; gap: 1rem; }
.step { display: flex; gap: 1rem; }
.step-number {
  background: var(--accent);
  color: var(--primary-dark);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Sponsor list ===== */
.sponsor-list { display: flex; flex-direction: column; gap: 0.75rem; }
.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: box-shadow 0.2s;
}
.sponsor-item:hover { box-shadow: var(--shadow-md); }
.sponsor-item .info span { color: var(--text-light); font-size: 0.875rem; margin-left: 0.5rem; }
.sponsor-item .price { color: var(--accent); font-weight: 600; }

/* ===== Quick nav ===== */
.quick-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.quick-nav a {
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.quick-nav a:hover { background: rgba(255,255,255,0.3); }

/* ===== Highlight box ===== */
.highlight-box {
  background: rgba(212,168,67,0.2);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
}

/* ===== Blockquote ===== */
blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  font-style: italic;
  color: var(--text-light);
  margin: 1.5rem 0;
}

/* ===== Lists ===== */
.list-disc { list-style: disc; padding-left: 1.5rem; }
.list-disc li { margin-bottom: 0.25rem; color: var(--text-light); }

/* ===== Blog ===== */
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-item time { font-size: 0.875rem; color: #9ca3af; }
.blog-item h2 { margin-top: 0.25rem; margin-bottom: 0.5rem; }
.blog-item p { color: var(--text-light); }

/* ===== Links ===== */
.link-primary { color: var(--primary-light); font-weight: 600; transition: color 0.2s; }
.link-primary:hover { color: var(--primary); }

/* ===== Supporters ===== */
.supporters-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}
.supporters-logos a {
  opacity: 0.7;
  transition: opacity 0.2s;
}
.supporters-logos a:hover { opacity: 1; }
.supporters-logos img {
  max-height: 50px;
  width: auto;
}

/* ===== Image Gallery ===== */
.image-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}
.image-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.5rem;
}
@media (max-width: 640px) {
  .image-gallery { grid-template-columns: 1fr; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-light); }
.font-bold { font-weight: 700; }
.back-link { display: inline-block; font-size: 0.875rem; color: var(--primary-light); margin-bottom: 1.5rem; }
.back-link:hover { color: var(--primary); }
