/*
 Theme Name:   Graceful Child
 Description:  Child Theme fÃ¼r das Graceful Theme
 Author:       Drk Rck
 Template:     graceful
 Version:      1.0.0
*/


/* blöde related posts ausblenden
 */

/* 1. Verstecke Ähnliche Beiträge standardmäßig (auf Übersichtseiten, Startseite, Archiven) */
.related-posts,
.jp-relatedposts,
.crp_related,
.yarpp-related {
  display: none !important;
}

/* 2. Zeige sie NUR an, wenn EIN Beitrag einzeln geöffnet ist (.single) */
body.single .related-posts,
body.single .jp-relatedposts,
body.single .crp_related,
body.single .yarpp-related {
  display: block !important;
}


/* Beginne KategorieÃ¼bersicht Reviews */

/* Container-Breite fÃ¼r das Listen-Layout */
.review-overview-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 3-spaltiges  Layout */
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 30px;
}

/* Kompakte Karten */
.review-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.review-card:last-child {
    border-bottom: none;
}

/* Cover */
.review-card-thumbnail img,
.no-cover-placeholder {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 2px;
    display: block;
    margin: 0 !important;
}

/* Platzhalter ohne Cover */
.no-cover-placeholder {
    height: 150px !important;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Rechte Spalte */
.review-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* VerÃ¶ffentlichungsdatum */
.review-card-date {
    font-size: 0.60rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px !important;
    line-height: 1;
}

/* Albumtitel */
.review-card-title {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.25;
}

.review-card-title a {
    text-decoration: none;
    color: #333;
}

.review-card-title a:hover {
    color: #666;
}

/* Seitennavigation */
.review-pagination {
    margin-top: 40px;
    text-align: center;
}

.review-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}

.review-pagination .page-numbers {
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    border-radius: 2px;
}

.review-pagination .page-numbers.current {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.review-pagination .page-numbers:hover:not(.current) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Tablet */
@media (max-width: 768px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .review-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 0;
    }

    .review-card-thumbnail img,
    .no-cover-placeholder {
        margin: 0 auto !important;
    }

    .review-card-body {
        text-align: center;
    }
}

/* ENDE KategorieÃ¼bersicht Reviews */


/* Sicherstellen, dass die Spaltenbreiten des Haupt-Themes nicht kollidieren */
#primary.content-area, 
#secondary.widget-area {
    box-sizing: border-box !important;
}

/* Inneres Grid-System NUR auf Desktop-GerÃ¤ten */
@media (min-width: 992px) {
    .critique-grid-wrapper {
        display: grid !important;
        grid-template-columns: 240px 1fr !important; /* Linke Spalte fix auf 240px, rechte Spalte flexibel */
        gap: 30px !important;
        align-items: start !important;
        width: 100% !important;
    }
}

/* Linke Spalte untereinander ausrichten */
.critique-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Abstand zwischen Cover und Info-Box */
}

/* Verhindert das Herausragen von Bildern aus der Spalte */
.critique-cover img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Die hervorgehobene Kurzinfo-Box */
.critique-meta-box {
    background-color: #f7f7f7; /* Heller Hintergrund */
    border: 1px solid #e5e5e5; /* Subtiler Rahmen */
    border-left: 4px solid #333; /* Dunkler Akzentbalken links */
    padding: 15px;
    margin-top: 15px;
    border-radius: 0 4px 4px 0;
}

.critique-meta-box h2 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.critique-meta-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.critique-meta-box ul li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.critique-meta-box ul li:last-child {
    margin-bottom: 0;
}

/* Rechte Spalte (Beitragstext) */
.critique-content h1 {
    margin-top: 0; /* Verhindert, dass die Ãœberschrift tiefer als das Bild rutscht */
    margin-bottom: 20px;
}

/* Styling fÃ¼r die Beitrags-Navigation unten */
.critique-divider {
    margin: 40px 0 20px 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
}

.critique-footer-navigation h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.related-posts-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.related-posts-nav a {
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.related-posts-nav a:hover {
    color: #0073aa; /* Oder deine Theme-Akzentfarbe */
}

.nav-previous, .nav-next {
    flex: 1;
    font-size: 0.95rem;
}

.nav-next {
    text-align: right;
}

/*übersichtsseitenkram??? */

/* Plattenreview-Übersicht: drei Karten pro Zeile */
body.category-plattenreview #primary :has(> article.review-card) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

/* Theme-Spaltenbreiten der einzelnen Karten aufheben */
body.category-plattenreview #primary article.review-card {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    min-width: 0 !important;
}

/* Auf kleineren Bildschirmen weniger Spalten */
@media (max-width: 900px) {
    body.category-plattenreview #primary :has(> article.review-card) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    body.category-plattenreview #primary :has(> article.review-card) {
        grid-template-columns: 1fr !important;
    }
}

/* Plattenreview-Karten: Bild oben, Text darunter */
body.category-plattenreview article.review-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
}

/* Einheitlicher Bildrahmen */
body.category-plattenreview .review-card-thumbnail {
    width: 100% !important;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    flex: none;
}

/* Link füllt den Rahmen; Bild wird oben mittig eingepasst */
body.category-plattenreview .review-card-thumbnail > a {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

body.category-plattenreview .review-card-thumbnail img.wp-post-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center top !important;
}

/* Datum und Titel stehen unterhalb des gleich hohen Bildrahmens */
body.category-plattenreview .review-card-body {
    width: 100%;
    margin-top: 12px;
}

/* HOVER */

/* Cover beim Hover vergrößern und über den Rahmen hinausragen lassen */
body.category-plattenreview .review-card-thumbnail {
    overflow: visible !important;
    position: relative;
}

body.category-plattenreview .review-card-thumbnail a {
    overflow: visible !important;
}

body.category-plattenreview .review-card-thumbnail img.wp-post-image {
    position: relative;
    z-index: 1;
    transform-origin: center center;
    transition: transform 0.35s ease;
}

body.category-plattenreview .review-card-thumbnail a:hover img.wp-post-image,
body.category-plattenreview .review-card-thumbnail a:focus-visible img.wp-post-image {
    transform: scale(1.25);
    z-index: 10;
}
