/* Kidixi-Bücherei (E-41). Baut auf /marke.css und /start/start.css auf, die vorher eingebunden sein müssen.
   Hier nur, was die Bücherei zusätzlich braucht: Regal im Einstieg, Sprungleiste, Regalköpfe. */

/* Einstieg mit Bücherregal */
.bue-held h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
.bue-zahlen { list-style: none; padding: 0; margin: 1.4em 0 1.2em; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--grau); font-size: 1rem; }
.bue-zahlen strong { display: block; font: 800 1.7rem/1.1 var(--kopf); color: var(--wald); }

.bue-regal { position: relative; min-width: 0; padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 34px) 8px; border-radius: 28px;
  background: linear-gradient(180deg, #fff, var(--sand)); box-shadow: var(--schatten); border: 1px solid var(--linie); }
.bue-reihe { display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 1.4vw, 14px); padding: 0 4px; }
.bue-reihe img { flex: 1 1 0; min-width: 0; max-width: 118px; border-radius: 3px 8px 8px 3px;
  box-shadow: 6px 8px 16px rgba(16, 41, 31, .22); transition: transform .2s; }
.bue-reihe img:nth-child(odd) { transform: rotate(-1.5deg); }
.bue-reihe img:nth-child(even) { transform: rotate(1.2deg) translateY(-3px); }
.bue-brett { height: 14px; margin: 0 -6px 26px; border-radius: 6px; background: linear-gradient(180deg, #E9B566, var(--bernstein-tief));
  box-shadow: 0 8px 14px rgba(180, 83, 9, .22); }
.bue-brett:last-child { margin-bottom: 14px; }

/* Sprungleiste zu den Regalen */
.bue-leiste { position: sticky; top: 70px; z-index: 4; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.bue-leiste-innen { display: flex; gap: 10px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.bue-leiste-innen::-webkit-scrollbar { display: none; }
.bue-chip { flex: none; display: inline-flex; align-items: center; gap: .55em; padding: .45em .6em .45em 1.05em; border-radius: 999px;
  border: 2px solid var(--wald); color: var(--wald); font: 700 .98rem/1.2 var(--kopf); text-decoration: none; transition: background .15s, color .15s; }
.bue-chip:hover { background: var(--wald); color: #fff; }
.bue-chip-zahl { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; border-radius: 999px; background: var(--bernstein); color: var(--wald-tief); font-size: .85rem; }

/* Regale */
.bue-abschnitt { scroll-margin-top: 130px; }
.bue-regalkopf { display: flex; gap: clamp(16px, 2.4vw, 26px); align-items: flex-start; margin-bottom: 2em; max-width: 860px; }
.bue-regalkopf h2 { margin-bottom: .35em; }
.bue-intro { font-size: 1.1rem; margin: 0; }
.bue-symbol { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--minze-tief); color: var(--wald); }
.bue-symbol-warm { background: #FDE7C4; color: var(--bernstein-tief); }
.bue-symbol svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bue-reihe-titel { font: 700 1.05rem var(--kopf); color: var(--wald); margin: -.6em 0 1.1em; }
.bue-reihe-titel span { font: 700 .74rem var(--lese); letter-spacing: .12em; text-transform: uppercase; color: var(--bernstein-tief);
  background: #FDE7C4; border-radius: 999px; padding: .25em .75em; margin-right: .5em; vertical-align: .12em; }

.bue-abschnitt .angebot h3 a { color: inherit; text-decoration: none; }
.bue-abschnitt .angebot h3 a:hover { text-decoration: underline; }
.bue-abschnitt .buch-bild img { transition: transform .2s; }
.bue-abschnitt .buch-bild:hover img { transform: rotate(0deg) translateY(-4px); }
.bue-alter { font: 700 .92rem var(--lese); color: var(--bernstein-tief); margin: -.3em 0 .7em; }
.bue-abschnitt:not(.hell) .angebot { background: var(--sand); }
.bue-platz { display: flex; flex-direction: column; justify-content: center; }
/* Regal mit vier Büchern: vier nebeneinander, darunter zwei, damit keins allein steht. */
.buecher.bue-vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .buecher.bue-vier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .buecher.bue-vier { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
  .bue-regal { border-radius: var(--rund); }
  .bue-symbol { width: 52px; height: 52px; border-radius: 16px; }
  .bue-symbol svg { width: 28px; height: 28px; }
  .bue-zahlen strong { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .bue-reihe img, .bue-abschnitt .buch-bild img { transform: none !important; } }
