:root {
  --primary: #2d3a2e;
  --accent: #bfa16a;
  --dark: #222;
  --light: #f8f8f8;
  --white: #fff;
  --border: #e0e0e0;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Global image orientation - respect EXIF data */
img {
  image-orientation: from-image;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary), #1f2620);
  color: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container { 
  max-width: 100%;
  padding: 0 2rem;
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

/* Brand Name Styling - Handschrift-Stil wie Favicon */
.brand-name {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-style: italic;
  font-weight: normal;
  letter-spacing: 2px;
}

.header-logo a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.header-logo a:hover {
  opacity: 0.8;
}

.header-logo .brand-name {
  color: var(--accent);
}

.header-logo h1 { font-size: 2.2rem; font-weight: 700; letter-spacing: 1px; }
.header-logo .tagline { font-size: 0.9rem; font-weight: 300; opacity: 0.9; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  align-items: center;
}

.nav-menu > li {
  display: flex;
  align-items: center;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Dropdown Navigation */
.nav-item {
  position: relative;
}

.nav-item.has-dropdown > a {
  gap: 0.4rem;
}

.dropdown-indicator {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.nav-item.has-dropdown:hover .dropdown-indicator,
.nav-item.has-dropdown.dropdown-open .dropdown-indicator {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  min-width: 220px;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--primary);
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  border-bottom: none !important;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.2s ease;
  border-bottom: none !important;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  padding-left: 1.5rem;
}

/* Shopping Cart Link */
.cart-nav-item {
  position: relative;
}

.nav-menu a.cart-link {
  position: relative;
  color: var(--accent);
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu a.cart-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-bottom: none;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #d9534f;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

/* CMS Admin Link */
.nav-menu a.cms-link {
  color: var(--accent);
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border-bottom: none;
}

.nav-menu a.cms-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-bottom: none;
}

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  height: 500px;
  background: linear-gradient(rgba(45,58,46,0.7), rgba(45,58,46,0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  width: 110%; 
  height: 110%; 
  object-fit: cover; 
  object-position: center center;
  z-index: 0;
  animation: kenBurnsEffect 30s ease-in-out infinite alternate;
}

/* Ken Burns Effect - langsames Zoom und Pan */
@keyframes kenBurnsEffect {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  25% {
    transform: translate(-48%, -52%) scale(1.08);
  }
  50% {
    transform: translate(-52%, -50%) scale(1.05);
  }
  75% {
    transform: translate(-50%, -48%) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.12);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  animation: fadeInUp 0.8s ease;
}

.hero-content h2 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.3rem; font-weight: 300; text-shadow: 1px 1px 4px rgba(0,0,0,0.3); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Seasonal Hero - Advanced hero section with seasonal image rotation */
.seasonal-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(rgba(45,58,46,0.7), rgba(45,58,46,0.7));
}

.seasonal-hero-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.seasonal-hero-images img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  animation: kenBurnsEffect 30s ease-in-out infinite alternate;
}

.seasonal-hero-images img.active {
  opacity: 1;
  z-index: 1;
}

.seasonal-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(45,58,46,0.4), rgba(45,58,46,0.6));
  z-index: 2;
}

.seasonal-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.seasonal-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  animation: fadeInUp 0.8s ease;
}

.seasonal-hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease 0.2s both;
}

/* Responsive Seasonal Hero */
@media (max-width: 768px) {
  .seasonal-hero {
    height: 350px;
  }
  
  .seasonal-hero-title {
    font-size: 2rem;
  }
  
  .seasonal-hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .seasonal-hero-title {
    font-size: 1.5rem;
  }
  
  .seasonal-hero-subtitle {
    font-size: 1rem;
  }
}

/* Main */
main { min-height: calc(100vh - 200px); }

.page-header {
  background: linear-gradient(135deg, var(--primary), #1f2620);
  color: var(--white);
  padding: 3rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
  position: sticky;
  top: 80px;
  z-index: 100;
  transition: padding 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.page-header-compressed {
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-header h2 { 
  font-size: 2.5rem; 
  transition: font-size 0.3s ease;
}

.page-header-compressed h2 {
  font-size: 1.3rem;
}
.content-section { padding: 3rem 0; }

/* Welcome Section */
.welcome-section { background: var(--white); padding: 3rem 0; }
.welcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }

.welcome-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.welcome-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.welcome-card h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.3rem; }

/* Highlights */
.highlights { background: var(--white); padding: 3rem 0; }
.highlights h2 { text-align: center; margin-bottom: 2rem; color: var(--primary); font-size: 2rem; }

.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.highlight-item {
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  background: var(--light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.highlight-item:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.highlight-item img { width: 100%; height: 500px; object-fit: cover; object-position: center center; transition: transform 0.3s ease; background: var(--light); display: block; border-radius: 8px 8px 0 0; }
.highlight-item:hover img { transform: scale(1.05); }
.highlight-item h3 { color: var(--primary); padding-top: 1.5rem; font-size: 1.3rem; }
.highlight-item p { padding: 0 1.5rem 1.5rem; color: #666; }

/* Associations */
.associations { background: var(--light); padding: 3rem 0; }
.associations h2 { margin-bottom: 1rem; color: var(--primary); font-size: 2rem; text-align: center; }
.associations-intro { text-align: center; color: #666; font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.association-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }

.assoc-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.assoc-logo-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.assoc-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.assoc-logo-link:hover .assoc-logo { transform: scale(1.1); }

.assoc-info { text-align: center; width: 100%; }
.assoc-info h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.5rem; }
.assoc-info p { color: #666; font-weight: 500; margin-bottom: 0.5rem; }
.assoc-info small { display: block; color: #999; font-size: 0.9rem; }

@media (max-width: 768px) {
  .association-logos { grid-template-columns: 1fr; }
}

/* About */
.about-content { background: var(--white); padding: 2rem; border-radius: 10px; }
.about-content h3 { color: var(--primary); margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; }
.about-content h3:first-child { margin-top: 0; }

/* Content Images with Caption and Alignment */
.about-content img,
.content-section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-content img.align-left,
.content-section img.align-left {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.about-content img.align-right,
.content-section img.align-right {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.about-content img.align-center,
.content-section img.align-center {
  display: block;
  margin: 1.5rem auto;
}

/* Image with Caption */
.image-with-caption {
  display: inline-block;
  margin-bottom: 1rem;
  vertical-align: top;
}

.image-with-caption img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.image-with-caption.align-left {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
  clear: left;
}

.image-with-caption.align-right {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
  clear: right;
}

.image-with-caption.align-center {
  display: block;
  margin: 1.5rem auto;
  text-align: center;
  float: none;
  clear: both;
}

.image-with-caption img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.image-caption {
  display: block;
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
  padding: 0 0.5rem;
  text-align: center;
}

/* Clearfix for content sections with floated images */
.about-content::after,
.content-section::after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

/* Ensure paragraphs after floated images clear properly */
.about-content > *:last-child,
.content-section > *:last-child {
  clear: both;
}

.feature-list { list-style: none; padding: 0; margin: 1rem 0 2rem 0; }
.feature-list li { padding: 0.8rem 0 0.8rem 2rem; position: relative; color: #666; }
.feature-list li:before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: bold; font-size: 1.2rem; }

/* Gallery */
.gallery-filters { 
  display: flex; 
  justify-content: center; 
  gap: 1rem; 
  margin-bottom: 2rem; 
  flex-wrap: wrap; 
}

/* ========================================
   Kompakte Filter-Bar (Generisch)
   ======================================== */
.filter-bar {
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}

.filter-bar-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-wrap: nowrap;
}

/* Suchfeld in Filter-Bar */
.filter-search {
  flex: 0 0 auto;
  width: 220px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: #999;
  font-size: 0.75rem;
  pointer-events: none;
}

.filter-search-input {
  width: 100%;
  padding: 0.35rem 1.8rem 0.35rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  background: var(--light);
  transition: all 0.2s ease;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(196, 161, 94, 0.15);
}

.search-clear {
  position: absolute;
  right: 6px;
  color: #999;
  font-size: 0.7rem;
  padding: 2px;
  border-radius: 50%;
  transition: all 0.2s;
}

.search-clear:hover {
  color: var(--accent);
}

/* Trennlinie zwischen Suche und Filter */
.filter-bar-main .filter-search {
  border-right: 1px solid var(--border);
  padding-right: 0.5rem;
  margin-right: 0.25rem;
}

/* Filter Buttons in Filter-Bar */
.filter-bar .filter-buttons {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

.filter-bar .filter-buttons.primary-filters {
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(to right, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.filter-bar .filter-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  border-width: 1px;
  border-radius: 4px;
  white-space: nowrap;
}

.filter-bar .filter-btn .filter-label {
  display: inline;
}

.filter-bar .filter-btn i {
  font-size: 0.7rem;
}

/* Toggle Button für erweiterte Filter */
.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  margin-left: auto;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 4px;
  color: #666;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-toggle-btn.active {
  border-style: solid;
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(196, 161, 94, 0.08);
}

.filter-toggle-arrow {
  transition: transform 0.2s ease;
  font-size: 0.65rem;
}

.filter-toggle-btn.active .filter-toggle-arrow {
  transform: rotate(180deg);
}

/* Erweiterte Filter (ausklappbar) */
.filter-bar-advanced {
  margin-top: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: var(--light);
  border-radius: 6px;
  border: 1px solid var(--border);
  animation: slideDown 0.15s ease;
}

/* Alle Filter im erweiterten Bereich (wenn aufgeklappt) */
.filter-bar-advanced .all-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-bar-advanced .all-filters:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-group + .filter-group {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.filter-group-label {
  color: #888;
  font-size: 0.75rem;
  white-space: nowrap;
}

.filter-group-label i {
  margin-right: 0.25rem;
}

.filter-btn-sm {
  padding: 0.2rem 0.5rem !important;
  font-size: 0.75rem !important;
}

/* Aktive Filter Tags */
.filter-active-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(196, 161, 94, 0.08);
  border-radius: 4px;
}

.active-tags-label {
  font-size: 0.75rem;
  color: #666;
}

.active-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  background: var(--accent);
  color: white;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
}

.active-tag-remove {
  color: rgba(255,255,255,0.8);
  font-size: 0.65rem;
  transition: color 0.2s;
}

.active-tag-remove:hover {
  color: white;
}

/* Responsive Filter-Bar */
@media (max-width: 768px) {
  .filter-bar-main {
    flex-wrap: wrap;
    padding: 0.5rem;
    gap: 0.4rem;
  }
  
  .filter-bar-main .filter-search {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    margin-bottom: 0.2rem;
  }
  
  .filter-bar .filter-btn .filter-label {
    display: none;
  }
  
  .filter-bar .filter-btn i:only-child {
    margin: 0;
  }
  
  /* Zeige Label wenn kein Icon */
  .filter-bar .filter-btn:not(:has(i)) .filter-label {
    display: inline;
  }
  
  .filter-toggle-text {
    display: none;
  }
}

/* ======================================== */

.filter-btn {
  background: var(--light);
  border: 2px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: inherit;
}

.filter-btn:hover, .filter-btn.active { 
  background: var(--accent); 
  color: var(--white); 
  border-color: var(--accent); 
}

/* Galleries Overview */
.galleries-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.gallery-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.gallery-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-card-content {
  padding: 1.5rem;
}

.category-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.category-badge.category-hund {
  background: #e8f5e9;
  color: #2e7d32;
}

.category-badge.category-events {
  background: #e3f2fd;
  color: #1565c0;
}

.gallery-card-content h3 {
  color: var(--primary);
  margin: 0.5rem 0;
  font-size: 1.3rem;
}

.gallery-card-content p {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Gallery Detail - Subgallery Tabs */
.subgallery-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.subgallery-tab {
  background: transparent;
  border: none;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  bottom: -0.5rem;
}

.subgallery-tab:hover {
  color: var(--accent);
}

.subgallery-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Gallery Images Grid */
.gallery-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: center;
  justify-items: center;
}

.gallery-image {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* Video wrapper styling */
.gallery-image.video-wrapper {
  display: inline-block;
  overflow: hidden;
}

.gallery-image video {
  display: block;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.loading, .error, .no-images {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.1rem;
}

.gallery-description {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Legacy Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin: 0;
}

.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; transition: all 0.3s ease; image-orientation: from-image; }
.gallery-item:hover img { transform: scale(1.1); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(45,58,46,0.9));
  color: var(--white);
  padding: 2rem 1rem 1rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Dogs */
/* Dogs-Grid wird weiter unten definiert (siehe "Hundeübersicht Grid") */

.dog-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; }
.dog-card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.dog-card img { width: 100%; height: 250px; object-fit: cover; }
.dog-card h3 { padding: 1rem 1rem 0; color: var(--primary); font-size: 1.3rem; }
.dog-card p { padding: 0.5rem 1rem; color: #666; font-size: 0.95rem; }
.dog-description { padding: 1rem; border-top: 1px solid var(--border); font-style: italic; color: var(--dark); }

/* Litters */
.litters-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 2.5rem; 
    margin: 3rem 0; 
}

.litter-card { 
    background: var(--white); 
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 3fr 2fr;
    min-height: 300px;
}

.litter-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.litter-card.current { border-top: 4px solid var(--accent); }
.litter-card.past { border-top: 4px solid #94a3b8; }

.litter-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.litter-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.litter-image-placeholder { 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(135deg, var(--light) 0%, #e2e8f0 100%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--accent); 
}

.litter-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1;
}

.badge-planned { background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%); }
.badge-mated { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); }
.badge-pregnant { background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%); }
.badge-born { background: linear-gradient(135deg, #198754 0%, #146c43 100%); }
.badge-completed { background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%); }
.badge-failed { background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%); }

/* Status Badge for detail page (not absolute positioned) */
.litter-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.litter-info { 
    padding: 1.75rem;
    display: flex; 
    flex-direction: column; 
    gap: 1rem;
    flex-grow: 1;
    position: relative;
}

.litter-name {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.litter-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
}

.meta-item i {
    color: var(--accent);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.meta-item strong {
    color: var(--primary);
    font-weight: 600;
}

/* Parents Avatars */
.meta-item.parents {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.parents-avatars {
    display: flex;
    width: 100%;
}

.parent-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    gap: 0.5rem;
}

.parent-avatar {
    position: relative;
    width: 160px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid var(--border);
    transition: all 0.2s ease;
}

.parent-avatar:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.parent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parent-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    color: var(--text-light);
    font-size: 1.8rem;
}

.parent-avatar .gender-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid var(--border);
}

.parent-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Remove old parents-names styles */
.parents-names {
    display: none;
}

.parents-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.parent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.parent-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.parent-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.female { color: #ec4899; }
.male { color: #3b82f6; }

.gender-split {
    display: flex;
    gap: 1rem;
    margin-left: 0.5rem;
}

.gender-split span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.litter-description { 
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    flex-grow: 1;
}

.btn-litter {
    margin-top: auto;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light);
    border-radius: 12px;
    color: #64748b;
}

.empty-state i {
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.inquiry-section {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--light) 0%, #e2e8f0 100%);
    border-radius: 12px;
    text-align: center;
}

.inquiry-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.inquiry-section p {
    color: #475569;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.7;
}

.inquiry-section .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Breeding Timeline */
.breeding-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.timeline-item i {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.timeline-item strong {
    color: var(--primary);
}

.timeline-item small {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
}

/* Parent Health Data */
.health-data {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.health-data small {
    display: block;
    line-height: 1.6;
}

/* Litters Status Filter */
.filter-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.5rem;
}

/* filter-btn styles are defined in Gallery section */


/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }

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

.info-box { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.info-box h4 { color: var(--accent); margin-bottom: 0.5rem; }
.info-box p { color: #666; }
.info-box a { color: var(--accent); text-decoration: none; transition: all 0.3s ease; }
.info-box a:hover { text-decoration: underline; }

/* Forms */
.contact-form { background: var(--light); padding: 2rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.form-group label { color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.form-group label .optional { font-weight: 400; color: #888; font-size: 0.85em; }

.form-group input, .form-group textarea {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(191,161,106,0.1);
}

/* Checkbox Styling */
.form-group-checkbox {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 400 !important;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-text {
  font-size: 0.9rem;
  color: #555;
}

.checkbox-text a {
  color: var(--accent);
  text-decoration: underline;
}

.checkbox-text a:hover {
  color: var(--primary);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover { background: #a88c4a; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(191,161,106,0.3); }

/* Footer */
.footer { background: linear-gradient(135deg, var(--primary), #1f2620); color: var(--white); padding: 3rem 0 1rem; margin-top: 3rem; }

.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }

.footer-section h4 { color: var(--accent); margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.7rem; }
.footer-section a { color: var(--white); text-decoration: none; transition: all 0.3s ease; }
.footer-section a:hover { color: var(--accent); }

/* Footer Navigation Two Columns */
.footer-nav-columns { display: flex; gap: 2rem; }
.footer-nav-columns ul { list-style: none; margin: 0; padding: 0; }

.footer .brand-name { color: var(--accent); }

.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.9; }

/* Alert Messages */
.alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  animation: slideInDown 0.4s ease;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Flash Messages - zentral */
.flash-messages {
  padding: 1rem 0;
}

.flash-message {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  animation: slideInDown 0.4s ease;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.flash-message:hover {
  opacity: 0.9;
}

.flash-message:last-child {
  margin-bottom: 0;
}

.flash-icon {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.flash-text {
  flex: 1;
}

.flash-close {
  margin-left: 1rem;
  opacity: 0.6;
  font-size: 0.9rem;
}

.flash-close:hover {
  opacity: 1;
}

.flash-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.flash-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.flash-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

.flash-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header .container { flex-direction: column; gap: 1rem; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--primary); padding: 1rem; width: 100%; }
  .nav-menu.active { display: flex; }
  .nav-menu li { border-bottom: 1px solid rgba(255,255,255,0.1); }
  
  /* Mobile Dropdown */
  .nav-item.has-dropdown > a {
    justify-content: space-between;
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.15);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  
  .dropdown-menu::before {
    display: none;
  }
  
  .nav-item.has-dropdown.dropdown-open .dropdown-menu {
    max-height: 500px;
    padding: 0.5rem 0;
  }
  
  .nav-item.has-dropdown:hover .dropdown-menu {
    max-height: 0;
    padding: 0;
  }
  
  .nav-item.has-dropdown.dropdown-open:hover .dropdown-menu {
    max-height: 500px;
    padding: 0.5rem 0;
  }
  
  .dropdown-menu a {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .dropdown-menu a:hover {
    padding-left: 1.75rem;
  }
  .hero-content h2 { font-size: 2rem; }
  .hero-content p { font-size: 1.1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .welcome-grid, .highlights-grid, .gallery-grid, .litters-grid { grid-template-columns: 1fr; }
  .page-header h2 { font-size: 2rem; }
  .page-header-compressed h2 { font-size: 1.2rem; }
  .hero { height: 350px; }
  .dog-detail-layout { grid-template-columns: 1fr; }
  .dog-detail-images { position: relative; top: 0; }
  /* dogs-grid wird in spezifischer Media-Query weiter unten behandelt */
}

@media (max-width: 768px) {
  /* Hundedetail-Seite: Mobile/Tablet Optimierung für Tabellen */
  .dog-info-table {
    display: block;
  }
  
  .dog-info-table tbody {
    display: block;
  }
  
  .dog-info-table tr {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .dog-info-table td {
    display: block;
    width: 100% !important;
    padding: 0 !important;
    margin: 0;
  }
  
  .dog-info-table td:first-child {
    padding-bottom: 8px !important;
    font-weight: 600;
    color: var(--primary);
  }
  
  .dog-info-table td:last-child {
    padding-left: 0 !important;
  }
  
  /* Badges nicht umbrechen */
  .health-badge {
    white-space: nowrap;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .header-logo h1 { font-size: 1.4rem; }
  .hero-content h2 { font-size: 1.5rem; }
  .hero-content p { font-size: 1rem; }
  .association-links { flex-direction: column; align-items: center; }
  .assoc-link { width: 100%; max-width: 200px; }
  .page-header h2 { font-size: 1.5rem; }
  .page-header-compressed h2 { font-size: 1rem; }
  
  /* Hundedetail-Seite: Mobile Optimierung */
  .dog-detail-layout {
    gap: 25px;
  }
  
  .info-section {
    padding: 15px;
  }
  
  .info-section h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
  }
  
  .dog-info-table td {
    padding: 6px 3px;
    font-size: 0.9em;
  }
  
  .dog-info-table strong {
    font-size: 0.95em;
  }
  
  .health-badge {
    padding: 3px 10px;
    font-size: 0.85em;
  }
  
  .titles-display {
    gap: 6px;
  }
  
  .title-badge-large {
    padding: 5px 10px;
    font-size: 0.8em;
  }
  
  .dog-gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
  }
  
  .thumbnail {
    height: 70px;
  }
  
  .pedigree-link {
    font-size: 1em;
  }
  
  .dog-official-name {
    font-size: 0.8em;
  }
}

/* Hundeübersicht Grid */
.dogs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive: Bei Tablets (unter 900px) weiterhin 2 Spalten, aber kleinerer Gap */
@media (max-width: 900px) {
    .dogs-grid {
        gap: 20px;
    }
}

/* Responsive: Bei schmalen Geräten (unter 768px) nur noch 1 Spalte */
@media (max-width: 768px) {
    .dogs-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
}

/* Link-Wrapper für klickbare Hundekarten */
.dog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.dog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dog-card-link:hover .dog-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dog-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 12px 12px 0 0;
}

/* Slideshow für Hundebilder */
.dog-slideshow {
    position: relative;
    background: #2d3e2f;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    border-radius: 12px 12px 0 0;
}

.slideshow-image:first-child {
    position: relative;
}

.slideshow-image.active {
    opacity: 1;
}

.dog-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dog-info h3 {
    margin: 0 0 4px 0;
    color: var(--primary);
    font-size: 1.6em;
}

.dog-official-name {
    font-style: italic;
    color: #666;
    font-size: 0.85em;
    margin: 0 0 15px 0;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.page-header-compressed .dog-official-name {
    font-size: 0.7em;
    margin: 0;
}

.dog-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.dog-details-list {
    margin: 0 0 15px 0;
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

.dog-details-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    font-size: 0.88em;
}

.dog-details-list li:last-child {
    border-bottom: none;
}

.dog-details-list strong {
    color: #333;
    font-weight: 600;
    min-width: 100px;
}

.dog-details-list span {
    color: #666;
    text-align: right;
}

.dog-titles {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.title-badge {
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
}

.dog-card-footer {
    padding: 0 20px 20px 20px;
    text-align: center;
}

.dog-card-footer .btn-primary {
    width: 100%;
    max-width: 250px;
    padding: 10px 24px;
    font-size: 0.95em;
}

/* Hundedetail-Seite */
.dog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.dog-detail-images {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.dog-main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dog-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

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

.dog-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary);
}

.dog-detail-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.info-section h3 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 15px;
}

.dog-info-table {
    width: 100%;
    border-collapse: collapse;
}

.dog-info-table tr {
    border-bottom: 1px solid #e0e0e0;
    display: block;
    padding: 12px 0;
}

.dog-info-table tr:last-child {
    border-bottom: none;
}

.dog-info-table td {
    display: block;
    padding: 0;
    width: 100%;
}

.dog-info-table td:first-child {
    margin-bottom: 6px;
    font-size: 0.9em;
    color: #666;
}

.health-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
    white-space: nowrap;
}

.health-a,
.health-a1,
.health-a2 {
    background: #4caf50;
    color: white;
}

.health-b,
.health-b1,
.health-b2 {
    background: #8bc34a;
    color: white;
}

.health-c {
    background: #ffc107;
    color: #333;
}

.health-frei {
    background: #4caf50;
    color: white;
}

.titles-display {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.title-badge-large {
    background: #2d5a2f;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-block;
}

.external-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.external-link:hover {
    text-decoration: underline;
}

.pedigree-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.pedigree-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.pedigree-link svg {
    transition: transform 0.3s ease;
}

.pedigree-link:hover svg {
    transform: translateX(4px);
}

.judge-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.dog-description-full {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.dog-description-full h3 {
    color: var(--primary);
    margin-top: 0;
}

.dog-description-full p {
    line-height: 1.8;
    color: #555;
}

/* Dog Gallery Section */
.dog-gallery-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.dog-gallery-section h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 20px;
}

.back-link {
    text-align: center;
}

/* Breadcrumb Navigation */
.breadcrumb-container {
    background: transparent;
    padding: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.95rem;
    margin: 0;
    padding: 1.5rem 0 1rem 0;
    background: transparent;
    list-style: none;
}

.breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

/* Links in Breadcrumb - Gold */
a.breadcrumb-item {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a.breadcrumb-item:hover {
    color: var(--accent-dark, #a8894d);
    text-decoration: underline;
}

a.breadcrumb-item i {
    margin-right: 0.25rem;
}

.breadcrumb-separator {
    color: #999;
    font-size: 1rem;
    font-weight: 300;
    user-select: none;
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: #6c757d;
    font-weight: 500;
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.85rem;
        padding: 1rem 0 0.75rem 0;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
    border-radius: 8px;
    image-orientation: from-image;
}

@keyframes zoomIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px;
    user-select: none;
    transition: background-color 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255,255,255,0.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ========================================
   STAMMBAUM / PEDIGREE CANVAS
   ======================================== */

.pedigree-canvas-wrapper {
    margin-top: 2rem;
    background-color: #f7fafc;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#pedigree-canvas {
    display: block;
    width: 100%;
    height: 800px;
    border-radius: 4px;
    background: #ffffff;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

#pedigree-canvas:active {
    cursor: grabbing;
}

.pedigree-info {
    background-color: #e6fffa;
    border-left: 4px solid #38b2ac;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.pedigree-info p {
    margin: 0;
    color: #234e52;
}

.pedigree-info strong {
    color: #1a202c;
}

/* ========================================
   STAMMBAUM / PEDIGREE (OLD - kann entfernt werden)
   ======================================== */
.pedigree-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.generation-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.generation-selector span {
    font-weight: 600;
    color: #555;
}

.gen-btn {
    padding: 8px 16px;
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gen-btn:hover {
    background: var(--accent);
    color: white;
}

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

.pedigree-tree-wrapper {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.pedigree-tree {
    display: inline-flex;
    min-width: 100%;
}

.pedigree-node {
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0;
}

.node-content {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 200px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.node-content:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.node-content.male {
    border-color: #4a90e2;
    background: linear-gradient(to bottom, #fff 0%, #f0f7ff 100%);
}

.node-content.female {
    border-color: #e24a90;
    background: linear-gradient(to bottom, #fff 0%, #fff0f7 100%);
}

.root-node .node-content {
    background: linear-gradient(135deg, var(--primary), #3a4a3e);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
    min-width: 250px;
}

.root-node .node-zb,
.root-node .node-gender {
    color: rgba(255,255,255,0.9);
}

.node-name {
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 4px;
    color: #333;
}

.root-node .node-name {
    color: white;
    font-size: 1.1em;
}

.node-zb {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 2px;
}

.node-gender {
    font-size: 1.2em;
    color: #999;
    position: absolute;
    top: 8px;
    right: 10px;
}

.node-children {
    display: flex;
    flex-direction: column;
    margin-left: 40px;
    position: relative;
}

.child-branch {
    position: relative;
}

/* Verbindungslinien */
.child-branch::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #ccc;
}

.node-children::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ccc;
}

.father-branch::before {
    top: 50%;
}

.mother-branch::before {
    top: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .pedigree-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .generation-selector {
        justify-content: center;
    }
    
    .node-content {
        min-width: 150px;
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .root-node .node-content {
        min-width: 180px;
    }
    
    .node-children {
        margin-left: 25px;
    }
    
    .child-branch::before {
        left: -25px;
        width: 25px;
    }
    
    .node-children::before {
        left: -25px;
    }
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-notice.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-notice-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-notice-content i {
    font-size: 2rem;
    color: var(--accent);
}

.cookie-notice-content p {
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
}

.cookie-notice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: auto;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.cookie-btn-accept {
    background: var(--accent);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: #e5e7eb;
    color: #4b5563;
}

.cookie-btn-decline:hover {
    background: #d1d5db;
}

@media (max-width: 768px) {
    .cookie-notice {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .cookie-notice-actions {
        flex-direction: column;
    }
    
    .cookie-link {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Bootstrap-like Grid System for Checkout Forms */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row.g-3 > * {
    padding-right: 15px;
    padding-left: 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

@media (max-width: 768px) {
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Checkout Icon Spacing */
.checkout-section h3 i {
    margin-right: 12px;
}

.shipping-toggle label h3 i {
    margin-right: 12px;
}

/* Payment Options */
.payment-option {
    position: relative;
    padding: 18px 20px;
    border: 2px solid var(--light);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--accent);
    background: var(--light);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked ~ label {
    color: var(--primary);
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--accent);
    background: rgba(191, 161, 106, 0.1);
    box-shadow: 0 2px 8px rgba(191, 161, 106, 0.2);
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    cursor: pointer;
    width: 100%;
}

.payment-option label i {
    color: var(--accent);
    flex-shrink: 0;
    font-size: 2rem;
}

.payment-option label > div {
    flex: 1;
}

.payment-option label strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: var(--dark);
}

/* Form Check Custom (for shipping and other radio options) */
.form-check-custom {
    position: relative;
    padding: 18px 20px;
    border: 2px solid var(--light);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-custom:hover {
    border-color: var(--accent);
    background: var(--light);
}

.form-check-custom input[type="radio"],
.form-check-custom input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.form-check-custom:has(input[type="radio"]:checked),
.form-check-custom:has(input[type="checkbox"]:checked) {
    border-color: var(--accent);
    background: rgba(191, 161, 106, 0.1);
    box-shadow: 0 2px 8px rgba(191, 161, 106, 0.2);
}

.form-check-custom label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    cursor: pointer;
    width: 100%;
    gap: 15px;
}

.form-check-custom label > div:first-child {
    flex: 1;
}

.form-check-custom label strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: var(--dark);
}

/* Payment Secure Badge */
.payment-secure {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Sticky Sidebar */
.sticky-top {
    position: sticky;
    top: 20px;
}

/* Col Grid for larger screens */
.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

@media (max-width: 992px) {
    .col-lg-4,
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Utility Classes */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.ms-1 {
    margin-left: 0.25rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.text-success {
    color: #28a745;
}

.text-muted {
    color: #6c757d;
}

.small {
    font-size: 0.875rem;
}

/* Order Success Page */
.order-success-header {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon {
    color: #28a745;
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.success-icon i {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.order-number {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: bold;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.order-item-row {
    display: grid;
    grid-template-columns: 2fr auto auto auto;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light);
    align-items: center;
}

.order-item-row .item-name {
    font-weight: 500;
}

.order-item-row .item-total {
    text-align: right;
    font-weight: bold;
}

.order-next-steps {
    background: rgba(23, 162, 184, 0.1);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    margin-bottom: 30px;
}

.order-next-steps h4 {
    color: #17a2b8;
    margin-bottom: 15px;
}

.order-next-steps ul {
    margin: 0;
    padding-left: 20px;
}

.order-next-steps li {
    margin-bottom: 10px;
}

.highlight-warning {
    color: #856404;
    background: #fff3cd;
    padding: 5px 10px;
    border-radius: 4px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.checkout-actions.justify-center {
    justify-content: center;
}

.text-end {
    text-align: right;
}

/* ==============================================
   MODULE HEADER - Einheitlicher Header für Module
   ============================================== */

.module-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.module-header .module-title {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.module-header .module-title i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.module-header .module-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Header (für Unterabschnitte) */
.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.section-header .section-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

@media (max-width: 768px) {
    .module-header .module-title {
        font-size: 1.5rem;
    }
    
    .module-header .module-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   FEEDBACK SYSTEM STYLES
   ======================================== */

/* Honeypot fields - completely hidden */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Compact Feedback Container */
.content-feedback {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Compact Reactions */
.feedback-reactions-compact {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Emoji Trigger Button */
.emoji-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    background: white;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.emoji-trigger:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    background: #e7f3ff;
    transform: scale(1.1);
}

.emoji-trigger.active {
    border-color: #0d6efd;
    color: #0d6efd;
    background: #e7f3ff;
}

/* Selected Reactions Badges */
.selected-reactions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 16px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-badge:hover {
    background: #f8f9fa;
}

.reaction-badge.active {
    background: #e7f3ff;
    color: #0d6efd;
}

.reaction-badge .emoji {
    font-size: 1.1rem;
}

.reaction-badge .count {
    font-weight: 600;
    color: #6c757d;
}

.reaction-badge.active .count {
    color: #0d6efd;
}

/* Emoji Palette (Popup) */
.emoji-palette {
    position: absolute !important;
    top: 45px !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: white !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    padding: 0.5rem !important;
    display: none !important;
    min-width: auto !important;
    max-width: none !important;
}

.emoji-palette.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-palette-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

.emoji-palette-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.emoji-palette-btn:hover {
    background: #e7f3ff;
    transform: scale(1.15);
}

.emoji-palette-btn.active {
    background: #0d6efd;
}

/* ========================================
   Gallery Block (Content Block)
======================================== */
.gallery-block-section {
    padding: 2rem 0;
}

.gallery-block-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #2c3e50;
}

.gallery-block-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.gallery-block-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    image-orientation: from-image;
}

.gallery-block-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Lightbox Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
}

@media (max-width: 768px) {
    .gallery-block-thumb {
        width: 90px;
        height: 90px;
    }
    
    .gallery-block-grid {
        gap: 0.5rem;
    }
}
