/*
 Theme Name:   Woostify Child
 Theme URI:    https://green-living.earth
 Description:  Nachhaltiges Design für Green Living Earth
 Author:       FATAU
 Template:     woostify
 Version:      1.0
*/

/* --- Google Fonts: Inter + Playfair Display + Cormorant Garamond --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@700&family=Cormorant+Garamond:wght@600&display=swap');

/* --- Farben --- */
:root {
    --green-main: #4CAF50;
    --green-dark: #2E7D32;
    --white-natural: #FAFAF0;
    --accent-orange: #FFB74D;
    --accent-orange-dark: #f57c00;
    --sand: #F4F1E8;
}

.text-wrap-bio {
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white-natural);
    color: var(--green-dark);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--green-main);
    margin-top: 1em;
}

a {
    color: var(--green-main);
    text-decoration: none;
}
a:hover {
    color: var(--accent-orange);
}

button, .button, input[type="submit"] {
    background-color: var(--green-main);
    color: #fff;
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
button:hover, .button:hover, input[type="submit"]:hover {
    background-color: var(--green-dark);
}


footer {
    background-color: var(--sand);
    color: var(--green-dark);
    text-align: center;
    padding: 1.5em;
    font-size: 0.9em;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 30px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

.greenOverlay, .greenMotto {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 230, 200, 0.6);
    border-radius: 20px;
    padding: 1.8em 2.4em;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    z-index: 9999;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 90%;
    display: none;
    animation: fadeInUp 0.7s ease-out forwards;
}

.greenOverlay { top: 12%; color: #1B5E20; background-color: rgba(255, 255, 255, 0.5); }
.greenMotto { bottom: 5%; color: #3E2723; background-color: rgba(245, 239, 229, 0.85); }

.greenOverlay img { max-width: 140px; margin-bottom: 1em; }
.greenCloseBtn {
    position: absolute; top: 6px; right: 14px; font-size: 1.5rem;
    color: #666; cursor: pointer;
}
.greenCloseBtn:hover { color: #111; }

/* WPB Kategorien */
li.cat-item.cat-item-have-child > a {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1.1em; padding-right: 1.4em;
}

li.cat-item.cat-item-have-child > a .wpb-wmca-cat-name {
    flex: 1 1 auto; min-width: 0; font-size: 1rem; text-align: center;
    padding: 0.7em 1.6em !important; border-radius: 14px !important;
    word-break: break-word; white-space: normal; overflow-wrap: break-word; hyphens: auto;
}

.wpb-submenu-indicator {
    display: inline-flex; justify-content: center; align-items: center;
    background-color: var(--green-main) !important; color: #fff !important;
    width: 44px; height: 72px; border-radius: 50% / 40%;
    font-size: 1.5rem; font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    flex-shrink: 0; margin-left: 0.4em;
}
.wpb-submenu-indicator:hover {
    background-color: var(--accent-orange-dark) !important;
    color: #fff !important;
}

ul.wpb-wmca-children li a {
    background-color: var(--green-main);
    color: #fff !important;
    border-radius: 12px;
    padding: 0.6em 1.2em;
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.3em 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul.wpb-wmca-children li a:hover {
    background-color: var(--green-dark) !important;
    transform: translateY(-1px);
}

.wpb-wmca-current-cat > a .wpb-wmca-cat-name,
.wpb-wmca-cat-parent > a .wpb-wmca-cat-name {
    background-color: var(--green-main) !important;
    color: #fff !important;
    font-weight: 700;
}

.wpb-wmca-post-item.wpb-wmca-post-item-hover,
.wpb-wmca-post-item.wpb-wmca-post-item-hover a,
ul.wpb-wmca-children .wpb-wmca-post-item:hover,
ul.wpb-wmca-children .wpb-wmca-post-item:hover a {
    background-color: var(--green-dark) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.5em 1em;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Tag Cloud */
a.tag-cloud-link {
    background-color: var(--green-main);
    color: #fff !important;
    border-radius: 14px;
    padding: 0.6em 1.4em;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    margin: 0.3em 0.4em;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

a.tag-cloud-link:hover {
    background-color: var(--accent-orange-dark);
    transform: translateY(-1px);
}

/* WooCommerce Produktkarte */


ul.products li.product-category {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  padding: 1.2em;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

ul.products li.product-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

ul.products li.product-category img {
  border-radius: 8px;
  max-height: 160px;
  object-fit: cover;
  margin-bottom: 1em;
  transition: transform 0.3s ease;
}

ul.products li.product-category:hover img {
  transform: scale(1.05);
}

ul.products li.product-category h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.4em;
  line-height: 1.4;
  min-height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

ul.products li.product-category mark.count {
  background: none;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

ul.products li.product-category::after,
ul.products li.product-category:last-of-type::after {
  content: "";
  flex-basis: 100%;
  height: 2em;
  display: block;
}

ul.products li.product-category:last-of-type::after {
  height: 3em;
}

ul.products li.product {
  background: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  padding: 1.2em;
  transition: all 0.3s ease;
}

ul.products li.product:hover {
  box-shadow: 0 0 14px rgba(76, 175, 80, 0.12);
  transform: translateY(-4px);
}

ul.products li.product img {
  border-radius: 12px;
  margin-bottom: 1em;
}

ul.products li.product .price {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 1.1em;
}

ul.products li.product .button {
  background-color: var(--green-main);
  border-radius: 6px;
  padding: 0.4em 1.2em;
  font-weight: bold;
  color: #fff;
  transition: background-color 0.3s ease;
}

ul.products li.product .button:hover {
  background-color: var(--green-dark);
}

.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce a.button.add_to_cart_button {
  background-color: var(--green-main);
  color: #fff !important;
  font-weight: 700;
  padding: 0.7em 1.4em;
  border-radius: 14px;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
  text-align: center;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
}

.woocommerce ul.products li.product a.button.add_to_cart_button:hover,
.woocommerce a.button.add_to_cart_button:hover {
  background-color: var(--accent-orange-dark);
}

.woocommerce.archive .product-categories {
  margin-bottom: 3em;
  padding-bottom: 1em;
  border-bottom: 2px solid #e0e0e0;
}

.product-categories {
  margin-bottom: 4em;
  padding-bottom: 2em;
  border-bottom: 2px solid #e0e0e0;
}

.product-list {
  margin-top: 3em;
}

ul.products li.product:first-of-type::before {
  display: block;
  width: 100%;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--green-dark);
  margin: 2.5em 0 1em 0;
  padding-top: 0.5em;
  border-top: 2px solid #e0e0e0;
  text-align: left;
}

@media (max-width: 768px) {
  ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5em;
  }

  ul.products li.product-category {
    min-height: 250px;
    padding: 1em;
  }
}

body.dark-mode ul.products li.product-category {
  background-color: #222;
  color: #f0f0f0;
}

body.dark-mode ul.products li.product-category h2 {
  color: #fff;
}

body.dark-mode ul.products li.product-category mark.count {
  color: #81C784;
}

/* Blogartikel-Stil wie Produkt-Kategorie-Karte */
.site-main article.post {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 1.2em;
  min-height: 440px; /* angepasst nach Design */
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: center;
  height: 100%;
}


.site-main article.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.site-main article.post img {
  border-radius: 8px;
  max-height: 360px;
  object-fit: cover;
  margin-bottom: 1em;
  transition: transform 0.3s ease;
}

.site-main article.post:hover img {
  transform: scale(1.05);
}

.site-main article.post h2.entry-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.6em;
  line-height: 1.4;
  min-height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-main article.post .entry-summary {
  font-size: 0.95rem;
  color: var(--green-dark);
  margin-top: auto;
}

/* Bild optisch anpassen */
.site-main article.post img {
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
}

/* Titel */
.site-main article.post h2.entry-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.4em;
  text-align: center;
}

/* Textauszug mit Zeilenbegrenzung */
.site-main article.post .entry-summary {
  color: var(--green-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Read More Link unten fixieren */
.site-main article.post .read-more {
  margin-top: auto;
  font-weight: bold;
  color: var(--green-main);
  display: inline-block;
  margin-top: 1.2em;
}

.site-main article.post .read-more:hover {
  color: var(--accent-orange-dark);
}

/* Grid-Container für gleichmäßige Kartenverteilung */
.blog .site-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  align-items: stretch;
}

/* Blogartikel-Karte */
.site-main article.post {
  display: flex;
  flex-direction: column;
  justify-content: start;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  padding: 1.5em;
  min-height: 450px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.site-main article.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Artikelbild */
.site-main article.post img {
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1em;
  width: 100%;
}

/* Titel */
.site-main article.post h2.entry-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin-bottom: 0.6em;
  min-height: 3.5em;
  text-align: center;
}

/* Meta: Datum, Autor, Kategorie */
.site-main article.post .entry-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.8em;
  text-align: center;
}

/* Vorschautext begrenzen */
.site-main article.post .entry-summary {
  font-size: 0.95rem;
  color: var(--green-dark);
  line-height: 1.6;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Read More Button */
.site-main article.post .read-more,
.site-main article.post a.more-link {
  display: inline-block;
  background-color: var(--green-main);
  color: #fff;
  border-radius: 14px;
  padding: 0.6em 1.2em;
  margin-top: 1em;
  font-weight: 600;
  font-size: 0.95rem;
  align-self: center;
  text-align: center;
  transition: background-color 0.3s ease;
}

.site-main article.post .read-more:hover,
.site-main article.post a.more-link:hover {
  background-color: var(--accent-orange-dark);
}
img {
  max-width: 100%;
  height: auto;
    display: block;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- Performance Fixes: CLS & Fonts --- */

.woocommerce ul.products li.product h2 {
  min-height: 3.5em;
}

.woocommerce ul.products li.product .price {
  min-height: 1.5em;
}

.woocommerce a.button {
  min-height: 2.8em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-slider,
.elementor-image-carousel {
  min-height: 250px;
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.hero img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}
/* =======================================
   🔧 Mobile Optimierung für Layout & Inhalt
   Anpassungen für Artikel, Produkte & Container
   Gilt für Bildschirmbreiten bis max. 768px
   ======================================= */
@media (max-width: 768px) {
  .site-main article.post {
    padding: 1em;
    min-height: auto;
    text-align: left;
  }

  .site-main article.post h2.entry-title {
    font-size: 1rem;
    min-height: auto;
  }

  .site-main article.post .entry-summary {
    -webkit-line-clamp: 8;
    font-size: 0.9rem;
  }

  .entry-content.summary-text {
    padding: 0 1em;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .woostify-container, .content-area, .site-main {
    padding: 0 1em;
    width: 100%;
    box-sizing: border-box;
  }
}
/* Überschreibt die Vererbung und setzt Text linksbündig */
.site-main article.post .entry-content,
.site-main article.post .entry-content p,
.site-main article.post .entry-content ul,
.site-main article.post .entry-content ol {
    text-align: left !important;
}
/* Megamenü – Basislayout */
.mega-menu-wrap {
  position: relative;
  z-index: 1000;
}

.mega-sub-menu {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 8px 12px rgba(0,0,0,0.1);
  gap: 20px;
}

.mega-menu-column {
  flex: 1;
  margin: 0 10px;
}

/* EINHEITLICHE KACHELGRÖSSE & HOVER-STIL */
.mega-menu-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 10px;
  max-width: 180px;
  width: 100%;
  margin: 0 auto;
}

.mega-menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Bild im Kachelblock */
.mega-menu-item img {
    object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

/* Titel im Kachelblock */
.mega-block-title {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #333;
  text-align: center;
}

/* Responsive Breadcrumb */
.woostify-breadcrumb {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--green-dark);
  flex-wrap: wrap;
  gap: 0.3em;
  word-break: break-word;
}

@media (max-width: 768px) {
  .woostify-breadcrumb {
    font-size: 0.85rem;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    word-break: break-word;
  }

  .woostify-breadcrumb .item-bread {
    display: inline;
    margin-right: 0.2em;
  }
}
