/* ================================
   Custom CSS – Bootstrap 5.3.3
   Heißluftfritteusen Rezepte
   ================================ */

:root {
  --primary-color:  #2c5f2d;
  --primary-dark:   #1e4620;
  --accent-color:   #7cb342;
}

/* ------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------ */
.custom-navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 0.8;
}

/* ------------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------------ */
.hero-section {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

/* ------------------------------------------------------------------
   Bootstrap-Farben überschreiben
   ------------------------------------------------------------------ */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-success,
.btn-success {
  background-color: var(--primary-color) !important;
  border-color:     var(--primary-color) !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: var(--primary-dark) !important;
  border-color:     var(--primary-dark) !important;
}

.badge.bg-success {
  background-color: var(--primary-color) !important;
}

/* ------------------------------------------------------------------
   Allgemeiner Gradient-Hilfsklasse
   ------------------------------------------------------------------ */
.custom-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* ------------------------------------------------------------------
   Karten
   ------------------------------------------------------------------ */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ------------------------------------------------------------------
   Bilder in Karten
   ------------------------------------------------------------------ */
.card .rounded.overflow-hidden img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------------ */
.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.custom-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.custom-footer a:hover {
  opacity: 0.8;
}

/* Social-Icons im Footer */
.custom-footer .d-flex a {
  transition: opacity 0.2s, transform 0.2s;
}

.custom-footer .d-flex a:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   Cookie Banner
   ------------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 1.25rem 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner a {
  color: var(--primary-color);
}

/* ------------------------------------------------------------------
   Accordion
   ------------------------------------------------------------------ */
.accordion-button:not(.collapsed) {
  background-color: var(--accent-color);
  color: #fff;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(124, 179, 66, 0.25);
}

/* ------------------------------------------------------------------
   Smooth Scrolling
   ------------------------------------------------------------------ */
html {
  scroll-behavior: smooth;
}

/* ------------------------------------------------------------------
   Scroll-to-Top Button
   ------------------------------------------------------------------ */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 1010;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.3s, transform 0.2s;
}

#scrollToTopBtn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

#scrollToTopBtn i {
  pointer-events: none;
}




/* ------------------------------------------------------------------
   Responsive Anpassungen
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  #scrollToTopBtn {
    right: 20px;
    bottom: 90px;
  }
}

/* ------------------------------------------------------------------
   Druck-Styles
   ------------------------------------------------------------------ */
@media print {
  .custom-navbar,
  .cookie-banner,
  .floating-share-btn,
  #scrollToTopBtn,
  .btn,
  footer {
    display: none !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
  }
}
