
/* Astra + WooCommerce: full-width container on all shop-related pages */
@media (min-width: 922px) {
  body.ast-woo-shop-archive .site-content > .ast-container,          /* Astra shop archive */
  body.post-type-archive-product .site-content > .ast-container,      /* Woo shop archive fallback */
  body.tax-product_cat .site-content > .ast-container,                 /* category archive */
  body.tax-product_tag .site-content > .ast-container                 /* tag archive */
  /* body.single-product .site-content > .ast-container,                  product single */
  /* body.woocommerce-cart .site-content > .ast-container,                cart (Warenkorb) */
  /* body.woocommerce-checkout .site-content > .ast-container,            checkout (Kasse) */
  /* body.woocommerce-account .site-content > .ast-container,             my account */
  /* body.woocommerce-order-received .site-content > .ast-container       thank-you page */
  {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 10px;
    padding-right: 10px;
  }
}


.single-product .related ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .single-product .related ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .single-product .related ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .single-product .related ul.products { grid-template-columns: 1fr; } }
}

/* --- Einheitliche Kartenhöhe & Sterne über Button --- */
.ast-woocommerce-container ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 520px; /* ggf. anpassen */
}

/* Produktinhalt in Flex-Struktur bringen */
.ast-woocommerce-container ul.products li.product .astra-shop-summary-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Grundstruktur mit Abständen */
.ast-woocommerce-container ul.products li.product .woocommerce-loop-product__title {
	 min-height:4rem;
    margin-bottom: 0.4rem;
}

.ast-woocommerce-container ul.products li.product .price {
    margin-bottom: 0.8rem;
}

/* Sterne immer direkt über dem Button */
.ast-woocommerce-container ul.products li.product .review-rating,
.ast-woocommerce-container ul.products li.product .star-rating {
    order: 99; /* kurz vor dem Button */
    margin-top: auto;
    margin-bottom: 0.8rem;
    text-align: center;
}

/* Button bleibt ganz unten */
.ast-woocommerce-container ul.products li.product .button {
    order: 100;
    margin-top: 0;
}

/* Optionale mobile Optimierung */
@media (max-width: 768px) {
  .ast-woocommerce-container ul.products li.product {
      min-height: 460px;
  }
}





.woocommerce-js div.product .product_meta {
	border-top:0px;
	padding-top:0px;
}

.ast-sticky-add-to-cart-action-wrap .wc-gzd-additional-info {
	
	margin-bottom: 0.25em;
	margin-right:1em;
}

.tax-info {
    font-size: 0.9em; /* Kleinere Schriftgröße */
    color: gray; /* Optional: Farbe für den Zusatztext */
}


/* Kursübersicht */
.woo-course-item {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.woo-course-card {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
	padding: 0em;
}

.woo-course-image {
    flex: 0 0 250px;
    background: #f4f4f4;
  
}

.woo-course-image img {
    width: 100%;
    height: 100% !important; /* Bild wird gestreckt, um den gesamten Container zu füllen */
    border-right: 1px solid #ddd;
    display: block;
	
}

.woo-course-image a img {
margin-bottom: .0em;
margin: 0 !important;

}
.woo-course-content {
    flex: 1;
    padding: 20px;
}

.woo-course-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 5px;
    color: #333;
}

.woo-course-title a {
    text-decoration: none;
    color: inherit;
}

.woo-course-author {
    font-size: 0.9rem;
    color: #0073e6;
    margin: 0 0 15px;
}

.woo-course-author a {
    text-decoration: none;
    color: inherit;
}

.woo-course-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #555;
    font-size: 0.9rem;
}

.woo-course-meta li {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-icon {
    font-size: 1rem;
    color: #0073e6;
}

.woo-course-description {
    font-size: 1rem;
    color: #666;
    margin: 0 0 20px;
}

.woo-course-read-more {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    background: #0073e6;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.woo-course-read-more:hover {
    background: #005bb5;
}



/* Woocommerce - Kursübersicht */




.ld-course-content ul {
    list-style-type: none; /* Entfernt die Standard-Punkte */
    margin: 0;
    padding: 0;
}


.ld-course-content ul li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eaeaea; /* Graue Linie zwischen den Einträgen */
    transition: background-color 0.3s ease;
}

.ld-course-content ul li:hover {
    background-color: #f9f9f9; /* Hellgrauer Hintergrund beim Hover */
}

.ld-course-content ul li strong {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333; /* Textfarbe */
}

.ld-course-content ul li ul {
    list-style-type: none;
    margin: 0;
    padding: 0 0 0 20px; /* Einrückung für Unterpunkte */
}

.ld-course-content ul li ul li {
    padding: 5px 0;
    font-size: 14px; /* Kleinere Schriftgröße für Unterpunkte */
    color: #555; /* Dezentere Textfarbe */
}

.ld-course-content ul li::before {
    content: "\f02d"; /* Icon (z. B. FontAwesome) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #0073aa; /* Blaues Icon */
}

.ld-course-content ul li ul li::before {
    content: "\f0da"; /* Pfeil-Icon für Unterpunkte */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #0073aa; /* Blaues Icon */
}

.ld-course-content-title {
	margin-bottom: 0.7em !important;
	margin-top: 0.7em !important;
}

.ld-course-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Abstand zwischen den Elementen */
    justify-content: center; /* Elemente horizontal zentrieren */
}

.ld-metadata-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen Icon und Text */
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    min-width: 150px; /* Breite der Elemente */
}


/* Woocommerce - Kursinhalt */

.learndash-wrapper .ld-section-heading {
	display: none !important;
}

.ld-item-list-items .ld-expand-button .ld-text {
	display: none;
}
.learndash-wrapper .ld-expand-button.ld-button-alternate .ld-icon {
	margin-right: 15px;
	background: 0;
	color: #00a2e8;
	transform: rotate(270deg);
}
.learndash-wrapper .ld-expand-button.ld-button-alternate:hover .ld-icon {
	background: 0;
	color: orange;
}
.learndash-wrapper .ld-expand-button.ld-button-alternate.ld-expanded .ld-icon {
	transform: rotate(0deg);
	color: orange;
}


/* Woocommerce - FAQs */

.ld-course-faqs {
  
    padding: 15px;
    border-radius: 5px;
	border: 1px solid #e9eef5;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #e1e4ea;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: #e9eef5;
    color: #212529;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-question:hover {
    background-color: #dce3eb;
}

.faq-toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none; /* Standardmäßig versteckt */
    padding: 15px;
    background-color: #ffffff;
    color: #212529;
    border-top: 1px solid #e1e4ea;
    font-size: 14px;
}


.related.products .products {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
}

.related.products .course-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* Höhe passt sich an den Inhalt an */
    min-height: 325px;
    overflow: hidden; /* Verhindert Überlappen */
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .related.products .products {
        flex-direction: column; /* Stapelt die Blöcke untereinander */
    }

    .related.products .course-item {
        min-height: auto; /* Passt sich an den Inhalt an */
        height: auto;
        word-wrap: break-word; /* Lässt lange Wörter umbrechen */
        overflow-wrap: break-word;
    }

    .related.products .course-item h2 {
        font-size: 1.2em; /* Reduziert die Überschriftengröße */
    }

    .related.products .course-item p {
        font-size: 0.9em; /* Kleinere Schrift für bessere Lesbarkeit */
        line-height: 1.4; /* Mehr Platz zwischen den Zeilen */
    }
}

.products .acoplw-badge {
    position: unset !important;
    display: unset !important;
}



