/* ==========================================================================
   Buchwelt (bestable/simplecms-buchwelt): gemeinsame Grundform, je Welt ein eigener Stil.
   Die Website kopiert die Datei beim Vorbereiten nach public/ und bindet sie im Seiten-Template ein.
   Stil einer Welt: Spalte welt_stil (verspielt | sachlich | episch) -> Klasse bw-stil-…
   ========================================================================== */

.bw {
    --bw-akzent: #2f5d50;
    --bw-akzent-text: #fff;
    --bw-flaeche: #f6f5f1;
    --bw-rand: #ddd8cc;
    --bw-radius: 6px;
    --bw-schrift-titel: inherit;
    max-width: 72rem;
    margin: 0 auto;
}

/* Finn & Co.: bunt, rund, verspielt */
.bw-stil-verspielt {
    --bw-akzent: #e0663a;
    --bw-flaeche: #fff6e5;
    --bw-rand: #f3cf8f;
    --bw-radius: 18px;
    --bw-schrift-titel: "Comic Neue", "Trebuchet MS", sans-serif;
}

/* Sachbücher: ruhig und seriös */
.bw-stil-sachlich {
    --bw-akzent: #2f5d50;
    --bw-flaeche: #f4f6f4;
    --bw-rand: #d5ddd8;
    --bw-radius: 4px;
}

/* Romanwelten / Science-Fiction: dunkel und weit */
.bw-stil-episch {
    --bw-akzent: #8aa4ff;
    --bw-akzent-text: #0b1020;
    --bw-flaeche: #11162a;
    --bw-rand: #2a3358;
    --bw-radius: 2px;
    --bw-schrift-titel: Georgia, "Times New Roman", serif;
}
section.bw-stil-episch,
article.bw-stil-episch {
    background: var(--bw-flaeche);
    color: #e8ebf7;
    padding: 1.5rem;
}
.bw-stil-episch a { color: #a9bbff; }
/* Buttons und Karten behalten ihre eigenen Farben, auch innerhalb einer dunklen Welt */
.bw a.bw-button { color: var(--bw-akzent-text); }
.bw a.bw-button-zweit { color: var(--bw-akzent); }
.bw-weltkarte.bw-stil-verspielt, .bw-weltkarte.bw-stil-sachlich { color: #1e293b; }
.bw-weltkarte.bw-stil-episch { color: #e8ebf7; }

.bw h1, .bw h2, .bw h3 { font-family: var(--bw-schrift-titel); }
.bw h2 { margin: 2rem 0 .75rem; }
.bw-pfad { font-size: .9rem; margin-bottom: 1rem; }
.bw-claim { font-size: 1.2rem; opacity: .85; }
.bw-kopf { margin-bottom: 1.5rem; }
.bw-kopfbild { width: 100%; max-height: 22rem; object-fit: cover; border-radius: var(--bw-radius); }
.bw-intro, .bw-lang { max-width: 44rem; line-height: 1.7; }

/* Buchkarten */
.bw-karten {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1.25rem;
}
.bw-karte { display: flex; flex-direction: column; gap: .5rem; }
.bw-karte-cover img,
.bw-cover-leer {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--bw-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.bw-cover-leer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    background: var(--bw-flaeche);
    border: 1px solid var(--bw-rand);
}
.bw-karte h3 { font-size: 1rem; margin: 0; }
.bw-band, .bw-alter, .bw-untertitel { font-size: .85rem; margin: 0; opacity: .8; }
.bw-bald { font-size: .85rem; font-weight: 700; color: var(--bw-akzent); }

/* Welten- und Bereichskarten */
.bw-welten, .bw-einstiege {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
}
.bw-weltkarte, .bw-einstieg {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem;
    border-radius: var(--bw-radius);
    background: var(--bw-flaeche);
    border: 1px solid var(--bw-rand);
    text-decoration: none;
    color: inherit;
}
.bw-weltkarte img, .bw-einstieg img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--bw-radius); }
.bw-weltkarte-name { font-weight: 700; font-family: var(--bw-schrift-titel); font-size: 1.15rem; }
.bw-weltkarte:hover, .bw-einstieg:hover { border-color: var(--bw-akzent); }

/* Buchseite */
.bw-buchkopf { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 2rem; align-items: start; }
.bw-buchkopf:not(:has(> .bw-cover)) { grid-template-columns: 1fr; }
.bw-cover { width: 100%; height: auto; border-radius: var(--bw-radius); box-shadow: 0 4px 18px rgba(0, 0, 0, .2); }
.bw-kauf { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.bw-button {
    display: inline-block;
    padding: .6rem 1.1rem;
    border-radius: var(--bw-radius);
    background: var(--bw-akzent);
    color: var(--bw-akzent-text);
    text-decoration: none;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}
.bw-button-zweit { background: transparent; color: var(--bw-akzent); border: 2px solid var(--bw-akzent); }
.bw-preis { font-size: .9rem; opacity: .8; }
.bw-naechster {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--bw-akzent);
    background: var(--bw-flaeche);
    border-radius: var(--bw-radius);
}
.bw-daten { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; font-size: .9rem; }
.bw-daten dt { font-weight: 700; }
.bw-galerie-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .75rem; }
.bw-galerie-bilder img { width: 100%; border-radius: var(--bw-radius); }
.bw-qr-text { font-style: italic; }

/* Extras */
.bw-extraliste { list-style: none; padding: 0; display: grid; gap: .6rem; }
.bw-extraliste img { width: 4rem; height: 4rem; object-fit: cover; border-radius: var(--bw-radius); vertical-align: middle; margin-right: .6rem; }
.bw-extra-kurz { display: block; font-size: .9rem; opacity: .8; }
.bw-frei {
    font-size: .75rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: var(--bw-akzent);
    color: var(--bw-akzent-text);
}
.bw-extrabild { max-width: 100%; border-radius: var(--bw-radius); }

/* Entdecken */
.bw-themen { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 2rem; }
.bw-themen a {
    padding: .4rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--bw-rand);
    text-decoration: none;
}
.bw-themen a[aria-current="page"] { background: var(--bw-akzent); color: var(--bw-akzent-text); border-color: var(--bw-akzent); }

/* Newsletter */
.bw-newsletter {
    margin: 2.5rem 0;
    padding: 1.5rem;
    border-radius: var(--bw-radius);
    background: var(--bw-flaeche);
    border: 1px solid var(--bw-rand);
    display: grid;
    gap: .75rem;
    max-width: 36rem;
}
.bw-newsletter fieldset { border: 0; padding: 0; display: grid; gap: .35rem; }
.bw-newsletter legend { font-weight: 700; margin-bottom: .35rem; }
.bw-newsletter input[type="email"] { display: block; width: 100%; padding: .5rem; margin-top: .25rem; }
.bw-klein { font-size: .8rem; opacity: .75; }

.bw-andere { margin-top: 3rem; opacity: .95; }

@media (max-width: 640px) {
    .bw-buchkopf { grid-template-columns: 1fr; }
    .bw-cover { max-width: 14rem; }
}
