/*
 * LeseOrbit – Einzelbeitrag (single.css)
 */

/* ══════════════════════════════════════════════
   POST HERO
══════════════════════════════════════════════ */
.post-hero {
    text-align: center;
    margin-bottom: 40px;
}

.post-cover-wrap {
    display: block;           /* block statt inline-block für saubere Zentrierung */
    margin: 0 auto 28px;      /* auto links/rechts = zentriert */
    width: fit-content;
    position: relative;
}
.post-cover {
    width: 280px;             /* größer: 280px statt 220px */
    border-radius: 6px;
    display: block;
}

/* ── Sternebewertung (Variante A – schlicht) ── */
.post-rating {
    display: flex;
    flex-wrap: nowrap;          /* kein Umbruch in Edge/Chrome */
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 4px;
}
.post-rating-stars {
    display: inline-flex;       /* inline-flex verhindert Umbruch */
    flex-wrap: nowrap;
    flex-shrink: 0;             /* Sterne schrumpfen nicht */
    gap: 3px;
}
.rating-star {
    font-size: 1.4rem;
    line-height: 1;
    display: inline-block;      /* Edge: inline-block für Sonderzeichen */
    flex-shrink: 0;
}
.rating-star.full  { color: #FF8C00; }
.rating-star.empty { color: #ddd; }
.post-rating-label {
    font-size: .82rem;
    color: #7a7570;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    white-space: nowrap;        /* Label bleibt einzeilig */
    flex-shrink: 0;
}
.post-rating-label strong {
    color: #FF8C00;
    font-weight: 600;
}

.post-cat-tag {
    display: none; /* Kategorie-Tag auf Beitragsseite ausgeblendet */
}

.post-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: #228B22;
    margin-bottom: 8px;
    max-width: 680px;
    margin-left: auto; margin-right: auto;
}


.post-meta {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-wrap: wrap;
    font-size: .78rem; color: #7a7570;
}
.meta-sep { opacity: .35; }

.post-ornament {
    text-align: center;
    color: #FF8C00;
    font-size: 1.1rem;
    letter-spacing: .5em;
    margin: 0 0 18px;  /* halbiert: war 36px, jetzt 18px */
    opacity: .45;
}

/* ══════════════════════════════════════════════
   INFOBOX
══════════════════════════════════════════════ */
.book-infobox {
    max-width: 680px;
    margin: 24px auto 40px; /* 24px oben (kein Ornament mehr), 40px unten */
    border: 1px solid #e4e0da;
    border-left: 4px solid #FF8C00;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.infobox-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: .88rem;
    font-weight: 500;
    color: #FF8C00;
    text-align: left;
    transition: background .15s;
}
.infobox-toggle:hover { background: #fff5e6; }
.infobox-toggle:focus-visible {
    outline: 2px solid #FF8C00;
    outline-offset: -2px;
}

.infobox-icon { display: flex; align-items: center; color: #FF8C00; }

.infobox-caret {
    margin-left: auto;
    display: flex; align-items: center;
    color: #7a7570;
    transition: transform .22s ease;
}
.infobox-toggle[aria-expanded="true"] .infobox-caret {
    transform: rotate(180deg);
}

.infobox-body {
    padding: 0 20px 20px;
    border-top: 1px solid #e4e0da;
}
.infobox-body[hidden] { display: none !important; } /* Edge-Fix: !important für [hidden] */

/* Animated open/close */
.infobox-body.is-open {
    display: block;
    animation: infoboxOpen .22s ease both;
}
@keyframes infoboxOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.infobox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px 24px;
    padding-top: 16px;
}

.infobox-row {}
.infobox-row dt {
    font-size: .67rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #7a7570;
    margin-bottom: 3px;
    font-weight: 400;
}
.infobox-row dd {
    font-size: .93rem;
    font-weight: 500;
    color: #1a1a18;
    margin: 0;
}
.infobox-tag-link {
    color: #FF8C00;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,140,0,.3);
    transition: border-color .15s;
}
.infobox-tag-link:hover {
    border-bottom-color: #FF8C00;
}

/* ══════════════════════════════════════════════
   PROSE (Beitragstext)
══════════════════════════════════════════════ */
.post-content.prose {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #2a2824;
}

.prose p  { margin-bottom: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose ul, .prose ol { padding-left: 1.6em; margin-bottom: 1.4em; }

.prose h2 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 1.55rem; font-weight: 700;
    color: #228B22;
    margin: 2.2em 0 .6em;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e0da;
}
.prose h3 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 1.2rem; font-weight: 600;
    color: #228B22;
    margin: 1.8em 0 .4em;
}
.prose h4 {
    font-size: 1.15rem; font-weight: 700;
    color: #1a1a18;
    margin: 1.4em 0 .3em;
}

.prose blockquote {
    margin: 1.8em 0;
    padding: 16px 24px;
    border-left: 3px solid #FF8C00;
    background: #fff5e6;
    border-radius: 0 6px 6px 0;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #228B22;
    line-height: 1.65;
}
.prose blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: .82rem;
    color: #7a7570;
    font-style: normal;
}

.prose a { color: #228B22; font-weight: 500; }
.prose a:hover { color: #1a6b1a; }

.prose img {
    border-radius: 6px;
    margin: 1.4em 0;
    box-shadow: 0 2px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
}

.prose code {
    background: #eaf4ea;
    color: #1a6b1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: .9em;
}

.prose hr {
    border: none;
    border-top: 1px solid #e4e0da;
    margin: 2em 0;
}

/* ══════════════════════════════════════════════
   POST TAGS
══════════════════════════════════════════════ */
.post-tags {
    max-width: 680px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid #e4e0da;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.tags-label { font-size: .78rem; color: #7a7570; }
.tag-chip {
    font-size: .75rem;
    background: #eaf4ea;
    color: #228B22;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: all .18s ease;
    border: 1px solid transparent;
}
.tag-chip:hover { background: #228B22; color: #fff; }

/* ══════════════════════════════════════════════
   POST NAVIGATION
══════════════════════════════════════════════ */
.post-navigation {
    max-width: 680px;
    margin: 48px auto 0;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav-btn {
    background: #ffffff;
    border: 1px solid #e4e0da;
    border-radius: 6px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, border-color .2s;
    display: flex; flex-direction: column; gap: 4px;
}
.post-nav-btn:hover { border-color: #228B22; box-shadow: 0 2px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04); }
.post-nav-btn.empty { border: none; pointer-events: none; }

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

.post-nav-dir {
    font-size: .7rem; letter-spacing: .1em;
    text-transform: uppercase; color: #7a7570;
    display: flex; align-items: center; gap: 5px;
}
.post-nav-btn.next .post-nav-dir { justify-content: flex-end; }

.post-nav-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: .98rem; font-weight: 600;
    color: #228B22; line-height: 1.3;
}

/* ══════════════════════════════════════════════
   RESPONSIVE – MOBIL
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .post-cover { width: 200px; } /* responsive: kleiner auf Mobil */
    .post-title { font-size: 1.6rem; }
    .post-navigation { grid-template-columns: 1fr; }
    .post-nav-btn.next { text-align: left; }
    .post-nav-btn.next .post-nav-dir { justify-content: flex-start; }
    .infobox-grid { grid-template-columns: 1fr 1fr; }
    .prose { font-size: .97rem; }
}
