/*
Theme Name: Kadence Child
Theme URI: https://oblaka-journal.ru
Description: Kadence Child Theme für oblaka-journal.ru
Author: Облака Journal
Template: kadence
Version: 1.0.2
*/

/* Homepage - weißen Bereich entfernen */
.home .content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.home .entry-content-wrap {
    padding: 0 !important;
}
/* Seitentitel auf allen Seiten und Archiven verstecken */
.page-hero-section,
.entry-hero {
    display: none !important;
}

/* ============================================
   Rezeptsuche /najti-recept/ responsiv
   ============================================ */
@media (max-width: 768px) {

  .recipe-filter-wrap {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .recipe-filters {
    min-width: 0 !important;
    width: 100% !important;
  }

  .recipe-results {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .recipe-results .fwpl-layout {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .recipe-results .fwpl-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .recipe-results .fwpl-col {
    width: 100% !important;
  }

  .recipe-results .fwpl-item img {
    width: 100% !important;
    height: auto !important;
  }

  .recipe-results .fwpl-item {
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

@media (max-width: 480px) {
  .recipe-results .fwpl-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   Homepage "Последние рецепты" responsiv
   ============================================ */
@media (max-width: 768px) {

  /* Grid auf 2 Rezepte pro Reihe */
  .recent-recipes-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Wortumbruch normalisieren – kein "розмарино м" mehr */
  .recent-recipes-grid .recipe-card {
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  /* Bild responsiv */
  .recent-recipes-grid .recipe-card img {
    width: 100% !important;
    height: auto !important;
  }
}

/* Schmale Handys: 1 Rezept pro Reihe */
@media (max-width: 480px) {
  .recent-recipes-grid {
    grid-template-columns: 1fr !important;
  }
}
