/* ============================================
   Last Resort Ranch - Gnadenhof Website
   Modern & Warm Design
   ============================================ */

/* --- Dezenter Scrollbalken --- */
html {
  scrollbar-width: thin;
  scrollbar-color: #b5a898 transparent;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #b5a898;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8c7b6b;
}

/* --- System Font Stacks (keine externen Fonts = kein Consent nötig) --- */
/* Heading: System-UI Sans-Serif, modern und sauber */
/* Body: System-UI Stack für optimale Lesbarkeit auf allen Plattformen */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #c45a3c;
  --color-primary-dark: #a04830;
  --color-primary-light: #e8836a;
  --color-accent: #d4a853;
  --color-accent-light: #f0d48a;
  --color-bg: #fdf8f4;
  --color-bg-alt: #f5ede6;
  --color-text: #3d2b1f;
  --color-text-light: #6b5544;
  --color-white: #ffffff;
  --color-dark: #2c1810;
  --color-border: #e0d5cc;
  --color-success: #5a8f5a;
  --color-error: #c44a3c;
  --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.08);
  --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.12);
  --shadow-lg: 0 8px 32px rgba(61, 43, 31, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-height: 70px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 248, 244, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.nav-logo span {
  color: var(--color-text-light);
  font-weight: 300;
  font-size: 0.85rem;
  display: block;
  line-height: 1;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary);
  background: rgba(196, 90, 60, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 24, 16, 0.3) 0%,
    rgba(44, 24, 16, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 40px 20px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content .hero-subtitle {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* --- CMS Artikel --- */
.cms-article {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e0e0e0;
  overflow: hidden; /* Float-Clearing fuer alte Zeta-Inhalte */
}
.cms-article:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cms-article h2 {
  clear: both; /* Ueberschrift IMMER unter Floats */
  color: var(--color-primary-dark, #2d5016);
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}
.cms-article img {
  max-width: 100%;
  height: auto !important; /* Altes height-Attribut ueberschreiben */
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Alte Zeta Producer Galerie-Wrapper normalisieren */
.zpImageGallery {
  display: block;
  float: none !important;
  margin: 1rem 0;
  max-width: 100%;
}
.cms-content {
  overflow: hidden;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-dark);
}

.btn--accent:hover {
  background: var(--color-accent-light);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--white:hover {
  background: var(--color-bg);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* --- Donation Section --- */
.donation {
  text-align: center;
}

.donation-text {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.donation-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.donation-buttons img {
  height: 50px;
  width: auto;
  display: inline-block;
}

.bank-info {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 450px;
  margin: 20px auto 0;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.bank-info p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.bank-info strong {
  color: var(--color-primary);
}

/* --- Image Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- Quote Section --- */
.quote-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
}

.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 24, 16, 0.65);
}

.quote-section .container {
  position: relative;
  z-index: 1;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.quote-item {
  color: var(--color-white);
}

.quote-item h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
}

/* --- About / Portraits --- */
.portrait-bg {
  background-image: url("../media/images/421048752_763503535819147_583717800862993044_n-large.jpg");
  background-size: cover;
  background-position: center;
}
.webp .portrait-bg {
  background-image: url("../media/images/421048752_763503535819147_583717800862993044_n-large.jpg.webp");
}

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.portrait-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.portrait-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

/* --- Sponsor Section --- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.sponsor-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  min-height: 120px;
}

.sponsor-card img {
  max-height: 80px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.sponsor-card:hover img {
  opacity: 1;
}

.sponsor-card .placeholder {
  color: var(--color-text-light);
  font-style: italic;
  opacity: 0.6;
}

/* --- Map Section --- */
.map-section {
  padding: 80px 0 0;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 30px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--color-text-light);
  cursor: pointer;
  transition: background var(--transition);
}

.map-placeholder:hover {
  background: var(--color-border);
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--color-primary);
}

/* --- Cards (general) --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 8px;
  color: var(--color-primary);
}

.card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Horse Profile Cards (Steckbriefe) --- */
.horse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.horse-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.horse-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.horse-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.horse-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.horse-card:hover .horse-card-image img {
  transform: scale(1.05);
}

.horse-card-body {
  padding: 24px;
}

.horse-card-body h3 {
  color: var(--color-primary);
  margin-bottom: 8px;
}

.horse-card-body .horse-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.horse-card-body .horse-excerpt {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* --- Article / News --- */
.article {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.article h2,
.article h3 {
  color: var(--color-primary);
  margin-bottom: 16px;
}

.article img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.article p {
  line-height: 1.8;
}

/* --- About Page --- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-highlight {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 30px 40px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 1.2rem;
  font-weight: 300;
  margin: 40px 0;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  color: var(--color-primary);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-detail .icon {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form h3 {
  color: var(--color-primary);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--color-primary);
}

.form-checkbox label {
  font-weight: 400;
  font-size: 0.9rem;
}

.form-spam {
  background: var(--color-bg-alt);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.form-spam label {
  font-weight: 400;
}

/* --- Page Header (Unterseiten) --- */
.page-header {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 40px;
  margin-top: var(--header-height);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../media/images/292609206_1722144118129626_1313277541102364628_n-large.png")
    center/cover no-repeat;
  opacity: 0.2;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--color-primary-light);
}

/* --- Success / Error Pages --- */
.message-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
}

.message-box {
  background: var(--color-white);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 500px;
}

.message-box.success h2 {
  color: var(--color-success);
}
.message-box.error h2 {
  color: var(--color-error);
}

.message-box p {
  margin: 16px 0 24px;
  color: var(--color-text-light);
}

/* --- CMS Article Styles (for PHP inline content) --- */
.cms-content {
  max-width: 900px;
  margin: 0 auto;
}

.cms-content img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

.cms-content h2,
.cms-content h3 {
  color: var(--color-primary);
  margin-top: 30px;
  margin-bottom: 12px;
}

.cms-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* --- Steckbriefe / CMS Articlearea --- */
.articlearea {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.articlearea:hover {
  box-shadow: var(--shadow-md);
}

.articlearea h2 {
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  font-size: 1.6rem;
}

.articlearea img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  float: left;
  margin: 0 24px 16px 0;
  object-fit: cover;
}

.articlearea p {
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.articlearea::after {
  content: "";
  display: table;
  clear: both;
}

.zpImageGallery {
  float: left;
  margin: 0 24px 16px 0;
  max-width: 450px;
  width: 100%;
}

.zpImageGallery img {
  float: none;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.zpImageGallery a.fancybox {
  display: block;
  pointer-events: none;
}

.zpImageGallery a.fancybox img {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .articlearea img,
  .zpImageGallery {
    float: none;
    max-width: 100%;
    margin: 0 0 16px 0;
  }

  .articlearea {
    padding: 20px;
  }
}

/* --- Utility --- */
.text-center {
  text-align: center;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 10px 20px 20px;
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hero {
    min-height: 60vh;
  }

  .section {
    padding: 50px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .portrait-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .horse-grid {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .quote-item h3 {
    font-size: 1.2rem;
  }

  .map-container {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .donation-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 320px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .bank-info {
    padding: 16px;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .page-header {
    padding: 40px 0 30px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .map-container {
    height: 300px;
  }
}
