/* Blog-Übersicht */
.blog-post-box { display: flex; flex-direction: row; background-color: var(--blog-box-bg); border-radius: 12px; overflow: hidden; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.blog-post-box:nth-child(even) { flex-direction: row-reverse; }
.blog-post-image { flex: 0.5; min-width: 125px; background-color: rgba(0,0,0,0.02); }
.blog-post-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.no-thumbnail { width: 100%; height: 100%; background-color: #e2e8f0; min-height: 125px; }
.blog-post-text { flex: 2; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.blog-post-text .entry-title { margin: 0 0 15px 0; font-family: var(--blog-title-font); }
.blog-post-text .entry-title a { color: var(--blog-title-color); }
.blog-excerpt { font-size: 1.15rem; color: var(--blog-text-color); line-height: 1.6; margin-bottom: 0; }
.post-meta-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(0,0,0,0.05); }
.post-meta-left { display: flex; align-items: center; gap: 15px; }
.post-date { font-size: 0.85rem; color: #888888; font-style: italic; }
.post-overview-rating { font-size: 0.9rem; color: #fbbc04; font-weight: bold; background: rgba(251, 188, 4, 0.1); padding: 3px 8px; border-radius: 10px; }
.read-more-btn { padding: 8px 16px; background-color: var(--link-color); color: #ffffff; border-radius: 20px; font-size: 0.9rem; font-weight: bold; transition: background-color 0.2s ease; display: inline-block; }
.read-more-btn:hover { filter: brightness(1.1); }

/* Einzelansichten */
.single-card { background-color: var(--blog-box-bg); padding: 40px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 30px; box-sizing: border-box; }
.single-post-box .entry-header, .single-page-box .entry-header { margin-bottom: 25px; padding-bottom: 15px; }
.post-thumbnail img, .page-thumbnail img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.single-post-box .entry-content, .single-page-box .entry-content { line-height: 1.8; font-size: 1.05rem; }
.post-last-updated { margin-top: 30px; padding-top: 15px; border-top: 1px solid rgba(0,0,0,0.05); font-size: 11px; color: #999999; font-style: italic; text-align: right; }

/* Social Sharing */
.post-share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.share-btn { padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; color: #fff; cursor: pointer; border: none; transition: opacity 0.2s; display: inline-block; }
.share-btn:hover { opacity: 0.8; }
.fb { background-color: #4267B2; } .wa { background-color: #25D366; } .tg { background-color: #0088cc; } .mail { background-color: #d44638; } .copy { background-color: #333; }

/* Sterne Bewertung */
.rating-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 5px; }
.rating-display-left { display: flex; align-items: center; }
.rating-text { font-weight: bold; margin-right: 15px; font-size: 1.1rem; }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label { cursor: pointer; font-size: 2rem; color: #e0e0e0; transition: color 0.2s ease; padding: 0 2px; }
.star-rating:not(.disabled) label:hover, .star-rating:not(.disabled) label:hover ~ label, .star-rating input:checked ~ label { color: #fbbc04; }
.star-rating.disabled label { cursor: not-allowed; opacity: 0.6; }
.rating-average-display { background: rgba(0,0,0,0.03); padding: 8px 15px; border-radius: 20px; font-weight: bold; color: #555; }
.rating-average-display span.avg-score { color: #fbbc04; font-size: 1.2rem; }

/* Archive & Suche */
.archive-header { padding: 30px; border-radius: 12px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; background-color: var(--blog-box-bg); }
.archive-title { margin: 0; font-size: 2rem; }
.archive-description { margin-top: 10px; font-size: 1.05rem; }
.archive-title span { font-weight: normal; color: var(--link-color); }
.no-results-search { max-width: 400px; margin: 30px auto 0 auto; }
.no-results-search .search-form { position: relative; display: flex; align-items: center; width: 100%; }
.no-results-search .search-field { width: 100%; padding: 10px 40px 10px 20px; border: 1px solid var(--search-border-color, #ccc); border-radius: 20px; outline: none; font-size: 1rem; }
.no-results-search .search-submit { position: absolute; right: 0; top: 0; width: 45px; height: 100%; background: none; border: none; color: transparent; cursor: pointer; z-index: 2; }
.no-results-search .search-form::after { content: '🔍'; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); opacity: 0.5; pointer-events: none; z-index: 1; }

/* ==========================================================================
   Mobile Optimierung (Bilder & Abstände verkleinert)
   ========================================================================== */
@media (max-width: 768px) {
    .blog-post-box, .blog-post-box:nth-child(even) { flex-direction: column; }
    
    /* Bilder mobil deutlich kompakter & flacher machen */
    .blog-post-image {
        flex: none;
        width: 100%;
        height: 130px; /* Begrenzt die Bildhöhe mobil auf ein schickes Maß */
        background-color: rgba(0,0,0,0.01);
    }
    .blog-post-image img {
        height: 130px;
        object-fit: contain; /* Verhindert Verzerrung, passt das Bild sauber ein */
    }
    .no-thumbnail {
        min-height: 110px;
        height: 110px;
    }
    
    /* Textbereich mobil enger zusammenrücken für bessere Lesbarkeit */
    .blog-post-text {
        padding: 20px; 
    }

    .single-card { padding: 20px; }
    .rating-container { flex-direction: column; justify-content: center; text-align: center; gap: 15px; }
    .rating-display-left { flex-direction: column; }
    .rating-text { width: 100%; margin-bottom: 10px; margin-right: 0; }
}

/* ==========================================================================
   FAQ Modul (module-faq.php)
   ========================================================================== */

.mika-faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Die Hauptbox für jede Kategorie */
.faq-category-group {
    background-color: var(--blog-box-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Der klickbare Header (Kategorie-Titel & Beschreibung) */
.faq-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    list-style: none; /* Entfernt den Standard-Pfeil des Browsers */
    user-select: none;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease;
}

/* Fallback um den Standard-Pfeil in Safari/Chrome sicher auszublenden */
.faq-category-header::-webkit-details-marker {
    display: none;
}

.faq-category-header:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Linie unter dem Header, wenn die Box geöffnet ist */
.faq-category-group[open] .faq-category-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.faq-cat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.faq-cat-title {
    margin: 0;
    font-size: 1.4rem;
    color: var(--link-color);
}

.faq-cat-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--blog-text-color);
    font-style: italic;
}

/* Der eigene Pfeil, der sich beim Öffnen dreht */
.faq-toggle-icon {
    font-size: 1rem;
    color: var(--link-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-category-group[open] .faq-toggle-icon {
    transform: rotate(-180deg);
}

/* Die Liste der eigentlichen Fragen und Antworten */
.faq-items-list {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Einzelner Frage-Antwort-Block */
.faq-single-item {
    background-color: #fafafa;
    border-left: 4px solid var(--link-color);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.faq-question {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.faq-question strong {
    color: var(--link-color);
    margin-right: 5px;
}

.faq-answer {
    font-size: 1rem;
    color: var(--blog-text-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.faq-answer strong {
    color: #333333;
}

.faq-answer-content {
    line-height: 1.6;
}

.faq-answer-content p {
    margin: 0 0 10px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Links Modul (module-links.php)
   ========================================================================== */

.mika-link-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Hauptbox der Kategorie */
.link-category-group {
    background-color: var(--blog-box-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Der klickbare Header */
.link-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    list-style: none; /* Versteckt Standard-Pfeile */
    user-select: none;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

/* Fallback für Chrome/Safari Standard-Pfeil */
.link-category-header::-webkit-details-marker {
    display: none;
}

.link-category-header:hover {
    background-color: rgba(0,0,0,0.02);
}

.link-cat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.link-cat-title {
    margin: 0;
    font-size: 1.4rem;
    color: var(--link-color);
}

/* Kategorie Beschreibung (kleiner) */
.link-cat-desc {
    margin: 0;
    font-size: 0.85rem; 
    color: var(--blog-text-color);
    font-style: italic;
}

/* Aufklapp-Pfeil */
.link-toggle-icon {
    font-size: 1rem;
    color: var(--link-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

/* Pfeil dreht sich beim Öffnen */
.link-category-group[open] .link-toggle-icon {
    transform: rotate(-180deg);
}

/* Horizontale Linie (Standard: ausgeblendet) */
.link-category-divider {
    display: none;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin: 0;
}

/* Zeige Linie nur, wenn die Box geöffnet ist */
.link-category-group[open] .link-category-divider {
    display: block;
}

/* Link Liste innerhalb der Kategorie */
.link-items-list {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Einzelner Link mit Beschreibung */
.single-link-item {
    background-color: #fafafa;
    border-left: 3px solid var(--link-color);
    padding: 12px 15px;
    border-radius: 0 6px 6px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.single-link-item .link-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--text-color);
    display: inline-block;
    transition: color 0.2s ease;
}

.single-link-item .link-title:hover {
    color: var(--link-color);
}

/* Link Beschreibung (kleiner) */
.single-link-item .link-desc {
    margin: 0;
    font-size: 0.85rem; 
    color: var(--blog-text-color);
}

/* ==========================================================================
   Downloads Modul (module-download.php)
   ========================================================================== */

.mika-download-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Hauptbox der Kategorie */
.download-category-group {
    background-color: var(--blog-box-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Der klickbare Header */
.download-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    list-style: none; /* Versteckt Standard-Pfeile */
    user-select: none;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

/* Fallback für Chrome/Safari Standard-Pfeil */
.download-category-header::-webkit-details-marker {
    display: none;
}

.download-category-header:hover {
    background-color: rgba(0,0,0,0.02);
}

.download-cat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.download-cat-title {
    margin: 0;
    font-size: 1.4rem;
    color: var(--link-color);
}

/* Kategorie Beschreibung (kleiner) */
.download-cat-desc {
    margin: 0;
    font-size: 0.85rem; 
    color: var(--blog-text-color);
    font-style: italic;
}

/* Aufklapp-Pfeil */
.download-toggle-icon {
    font-size: 1rem;
    color: var(--link-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

/* Pfeil dreht sich beim Öffnen */
.download-category-group[open] .download-toggle-icon {
    transform: rotate(-180deg);
}

/* Horizontale Linie */
.download-category-divider {
    display: none;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin: 0;
}

/* Zeige Linie nur, wenn die Box geöffnet ist */
.download-category-group[open] .download-category-divider {
    display: block;
}

/* Download Liste innerhalb der Kategorie */
.download-items-list {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Einzelner Download mit Beschreibung */
.single-download-item {
    background-color: #fafafa;
    border-left: 3px solid var(--link-color);
    padding: 12px 15px;
    border-radius: 0 6px 6px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.single-download-item .download-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--text-color);
    display: inline-block;
    transition: color 0.2s ease;
}

.single-download-item .download-title:hover {
    color: var(--link-color);
}

/* Download Beschreibung (kleiner) */
.single-download-item .download-desc {
    font-size: 0.85rem; 
    color: var(--blog-text-color);
    line-height: 1.5;
}

.single-download-item .download-desc p {
    margin: 0 0 8px 0;
}

.single-download-item .download-desc p:last-child {
    margin-bottom: 0;
}