/* TS Rätselbuch — Frontend Produktseite */

/* ── Produktseiten-Wrapper ─────────────────────────────────────────────── */
.tsrb-product-page {
    max-width: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* ── Hero (Bild + Info nebeneinander) ──────────────────────────────────── */
.tsrb-hero {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 36px;
    padding: 24px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.tsrb-hero-image {
    flex-shrink: 0;
}
.tsrb-hero-image a {
    display: block;
}
.tsrb-product-image {
    max-width: 160px;
    max-height: 240px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}
.tsrb-no-cover {
    font-size: 80px;
    line-height: 1;
}

.tsrb-hero-info {
    flex: 1;
    min-width: 0;
}

/* ── Titel & Autor ─────────────────────────────────────────────────────── */
.tsrb-product-title {
    margin: 0 0 6px;
    font-size: 1.4em;
    line-height: 1.3;
    color: #111;
}
.tsrb-product-author {
    color: #666;
    font-size: .95em;
    margin: 0 0 10px;
}

/* ── Bewertung ─────────────────────────────────────────────────────────── */
.tsrb-rating {
    color: #f0a500;
    font-size: 1em;
    margin-bottom: 10px;
}
.tsrb-rating-num {
    color: #555;
    font-size: .85em;
}
.tsrb-reviews {
    color: #888;
    font-size: .8em;
}

/* ── Preis ─────────────────────────────────────────────────────────────── */
.tsrb-product-price {
    font-size: 1.5em;
    font-weight: 700;
    color: #B12704;
    margin: 0 0 16px;
}

/* ── Kaufbutton ────────────────────────────────────────────────────────── */
.tsrb-buy-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #f0c14b;
    color: #111 !important;
    text-decoration: none !important;
    border-radius: 4px;
    border: 1px solid #a88734;
    font-size: .95em;
    font-weight: 600;
    transition: background .15s;
}
.tsrb-buy-btn:hover {
    background: #daa520;
}

/* ── Beschreibung ──────────────────────────────────────────────────────── */
.tsrb-product-description {
    margin-bottom: 32px;
}
.tsrb-product-description h2 {
    font-size: 1.15em;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 12px;
}
.tsrb-product-description p {
    font-size: .95em;
    line-height: 1.7;
    color: #444;
}

/* ── Buchdetails ───────────────────────────────────────────────────────── */
.tsrb-product-details-section {
    margin-bottom: 32px;
}
.tsrb-product-details-section h2 {
    font-size: 1.15em;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 12px;
}
.tsrb-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 24px;
}
.tsrb-details-list li {
    display: flex;
    gap: 8px;
    font-size: .9em;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}
.tsrb-dl-label {
    color: #888;
    min-width: 80px;
    flex-shrink: 0;
}
.tsrb-dl-val {
    color: #333;
    font-weight: 500;
}

/* ── Archiv/Übersichts-Vorschau (tsrb-preview-block) ───────────────────── */
/* In Einzelansicht ausgeblendet — erscheint nur in Archiv/Kategorie-Seiten */
.tsrb-preview-block {
    margin-bottom: 16px;
}
.tsrb-preview-figure {
    margin: 0 0 10px;
}
.tsrb-preview-img {
    width: 100%;
    height: auto !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}
.tsrb-preview-content {
    /* intentionally unstyled */
}
.tsrb-preview-excerpt {
    display: none; /* kein Teaser in Archivansicht */
}
.tsrb-preview-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.tsrb-preview-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: .85em;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.3;
    transition: background .15s;
}
.tsrb-btn-details {
    background: #fff;
    color: #8b5e28 !important;
    border: 1px solid #8b5e28;
}
.tsrb-btn-details:hover { background: #fdf5ec; }
.tsrb-btn-buy {
    background: #f0c14b;
    color: #111 !important;
    border: 1px solid #a88734;
}
.tsrb-btn-buy:hover { background: #daa520; }
.single .tsrb-preview-block,
.single-post .tsrb-preview-block {
    display: none;
}

/* ── Shortcode-Produktbox (Fallback / Legacy) ──────────────────────────── */
.tsrb-box {
    display: flex;
    gap: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin: 24px 0;
    background: #fafafa;
    font-family: sans-serif;
}
.tsrb-box .tsrb-image { flex-shrink: 0; }
.tsrb-cover { max-width: 120px; max-height: 180px; border: 1px solid #ddd; }
.tsrb-info { flex: 1; }
.tsrb-title { margin: 0 0 6px; font-size: 1.1em; }
.tsrb-title a { color: #c45500; text-decoration: none; }
.tsrb-title a:hover { text-decoration: underline; }
.tsrb-author { color: #666; font-size: .9em; display: block; margin-bottom: 6px; }
.tsrb-price { font-size: 1.3em; font-weight: bold; color: #B12704; display: block; margin-bottom: 8px; }
.tsrb-desc { font-size: .88em; color: #444; margin: 8px 0; }
.tsrb-details { list-style: none; margin: 8px 0; padding: 0; font-size: .82em; color: #555; }
.tsrb-details li { margin-bottom: 3px; }
.tsrb-pending { padding: 12px; }

/* ── Facebook-Button im Menü (Custom Link mit CSS-Klasse tsrb-fb-nav-item) */
/* Icon-only: font-size:0 blendet "Facebook"-Text aus */
.tsrb-fb-nav-item > a,
.tsrb-fb-nav-item .mega-menu-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 0 !important;
    padding: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231877f2'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
}
.tsrb-fb-nav-item > a::before,
.tsrb-fb-nav-item .mega-menu-link::before { display: none !important; }
.tsrb-fb-nav-item > a:hover,
.tsrb-fb-nav-item .mega-menu-link:hover { background-color: transparent !important; cursor: pointer !important; }
.tsrb-fb-nav-item > a:focus,
.tsrb-fb-nav-item > a:focus-visible,
.tsrb-fb-nav-item > a:active,
.tsrb-fb-nav-item .mega-menu-link:focus,
.tsrb-fb-nav-item .mega-menu-link:focus-visible,
.tsrb-fb-nav-item .mega-menu-link:active { outline: none !important; box-shadow: none !important; background-color: transparent !important; }

/* ── Contact Form 7 Submit-Button ──────────────────────────────────────── */
.wpcf7 input[type="submit"].wpcf7-submit,
input[type="submit"].wpcf7-submit,
.wpcf7-submit {
    background: #cc6633 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: .95em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.wpcf7 input[type="submit"].wpcf7-submit:hover,
input[type="submit"].wpcf7-submit:hover,
.wpcf7-submit:hover { background: #a52a2a !important; }

/* ── Über mich Profilfoto: Höhe ────────────────────────────────────────── */
.wp-block-image.is-resized img { height: auto !important; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .tsrb-hero { flex-direction: column; gap: 16px; padding: 16px; }
    .tsrb-product-image { max-width: 120px; }
    .tsrb-product-title { font-size: 1.2em; }
    .tsrb-details-list { grid-template-columns: 1fr; }
    .tsrb-box { flex-direction: column; }
    .tsrb-cover { max-width: 80px; }
}
