/* Hintergrundbild je Seite, drei Varianten (siehe hintergrund.js). Brilumo: A Tinte, B Leseecke, C Wald.
   Lantern: Stuga der Schreibenden mit Sturmlaterne, Manuskript und Feder im Tintenglas, A Schreibtisch,
   B Winterfenster, C Stube. Ein Schleier dunkelt das Foto ab, damit Text und Karten lesbar bleiben. */
.grund { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--grund-tief, #0E1830); }
.grund > * { position: absolute; }
.grund .foto { inset: -4vh 0 -8vh; background: var(--bild) var(--pos, 50% 50%) / cover no-repeat; transform: translate3d(0, var(--ey, 0), 0) scale(1.04); will-change: transform; }
.grund .schleier { inset: 0; }
.grund-buch .schleier { background: linear-gradient(180deg, rgba(8, 14, 18, 0.55) 0%, rgba(8, 14, 18, 0.35) 30%, rgba(8, 14, 18, 0.62) 100%), radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(4, 8, 10, 0.7) 100%); }
.grund-laterne .schleier { background: linear-gradient(180deg, rgba(10, 12, 22, 0.55) 0%, rgba(10, 12, 22, 0.3) 35%, rgba(10, 12, 22, 0.65) 100%), radial-gradient(120% 90% at 55% 45%, transparent 30%, rgba(6, 6, 12, 0.72) 100%); }
@media (max-width: 860px) {
  .grund .foto { background-image: var(--bild-klein, var(--bild)); }
  .grund .schleier { background-color: rgba(8, 12, 18, 0.2); }
}

/* Umschalter, nur in der Vorschau */
.grund-wahl { position: fixed; left: 14px; bottom: 54px; z-index: 50; display: flex; gap: 6px; align-items: center; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(8, 10, 18, 0.85); box-shadow: 0 0 0 1px rgba(216, 138, 92, 0.45), 0 10px 24px -10px rgba(0, 0, 0, 0.8); font: 600 0.85rem/1 var(--text, system-ui); color: #F4EDDE; }
.grund-wahl button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(244, 237, 222, 0.35); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.grund-wahl button[aria-pressed="true"] { background: linear-gradient(180deg, #F6CF8C, #E2A95A); color: #1B1206; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .grund .foto { transform: scale(1.04); } }
