/* FA Lookbook – Umschlagbilder auf der Seite und die Vollbild-Ansicht. */

/* ---------- Umschlagbilder ---------- */
.falb-reihe { display: inline-flex; flex-wrap: wrap; gap: calc(var(--falb-abstand, 56px) * .8) var(--falb-abstand, 56px); align-items: flex-start; vertical-align: top; max-width: 100%; }
.falb-reihe + .falb-reihe { margin-left: var(--falb-abstand, 56px); }
.falb-reihe.falb-mitte { display: flex; justify-content: center; }
.falb-reihe.falb-mitte + .falb-reihe.falb-mitte { margin-left: 0; margin-top: var(--falb-abstand, 56px); }
.falb-umschlag { appearance: none; border: 0; padding: 0; margin: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: center;
  width: var(--falb-breite, 170px); max-width: 100%; }
.falb-umschlag picture { display: block; }
/* Der Umschlag liegt als Buch da: rechts und unten deutet sich der Buchblock an, darunter ein weicher Schatten */
.falb-umschlag .falb-bild { display: block; width: 100%; height: auto; background: #fff; border-radius: 1px 2px 2px 1px;
  box-shadow: 1px 1px 0 #f3f1ec, 2px 2px 0 #d9d6cf, 3px 3px 0 #f3f1ec, 4px 4px 0 #d3d0c8,
    6px 10px 14px rgba(0, 0, 0, .12), 14px 26px 44px rgba(0, 0, 0, .16);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s cubic-bezier(.2, .7, .2, 1); }
.falb-umschlag:hover .falb-bild, .falb-umschlag:focus-visible .falb-bild { transform: translate(-3px, -8px);
  box-shadow: 1px 1px 0 #f3f1ec, 2px 2px 0 #d9d6cf, 3px 3px 0 #f3f1ec, 4px 4px 0 #d3d0c8,
    10px 18px 22px rgba(0, 0, 0, .12), 24px 44px 64px rgba(0, 0, 0, .2); }
.falb-umschlag:focus-visible { outline: 2px solid currentColor; outline-offset: 10px; }
.falb-name { display: block; margin-top: 26px; font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; }
.falb-zahl { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .1em; opacity: .6; }
@media (max-width: 600px) {
  .falb-reihe .falb-umschlag { width: min(var(--falb-breite, 170px), 62vw); }
}

/* ---------- Vollbild-Ansicht ---------- */
html.falb-offen, html.falb-offen body { overflow: hidden; }
.falb-ansicht { position: fixed; inset: 0; z-index: 2147483000; color: #141414;
  font: 400 14px/1.4 Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(ellipse 70% 78% at 50% 46%, #efeeeb 0%, #dddbd6 100%); }
.falb-ansicht *, .falb-ansicht *::before, .falb-ansicht *::after { box-sizing: border-box; }
.falb-kopf, .falb-leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  padding: 14px max(18px, env(safe-area-inset-right, 0px)) 14px max(18px, env(safe-area-inset-left, 0px)); }
/* Kopf und Leiste schweben über dem Tisch, damit das Buch den Bildschirm füllen kann */
.falb-kopf { position: absolute; top: 0; left: 0; right: 0; padding-top: calc(14px + env(safe-area-inset-top, 0px)); pointer-events: none; }
.falb-leiste { position: absolute; bottom: 0; left: 0; right: 0; min-height: 68px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.falb-kopf > *, .falb-leiste > * { pointer-events: auto; }
/* Leiste: Stand links, Knöpfe in der Mitte – die Ecken bleiben frei für fest sitzende Elemente der Seite */
.falb-leiste { display: grid; grid-template-columns: 1fr auto 1fr; }
.falb-leiste .falb-stand { justify-self: start; }
.falb-titel strong { display: block; font-family: "Josefin Sans", "Century Gothic", "Trebuchet MS", sans-serif; font-weight: 700; font-size: clamp(18px, 2.6vw, 28px); letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; }
.falb-stand { font-variant-numeric: tabular-nums; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: #55524d; min-width: 0; }
.falb-tisch { position: absolute; inset: 0 0 calc(68px + env(safe-area-inset-bottom, 0px)) 0; touch-action: none; }
.falb-tisch canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.falb-tisch.falb-zeigt { cursor: pointer; } .falb-tisch.falb-greifbar { cursor: grab; } .falb-tisch.falb-zieht { cursor: grabbing; }
.falb-namen { position: absolute; left: 0; right: 0; bottom: 6%; display: grid; pointer-events: none; transition: opacity .3s; text-align: center; }
.falb-namen strong { display: block; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: clamp(11px, 1.4vw, 15px); }
.falb-namen span { color: #55524d; font-size: 12px; letter-spacing: .08em; }
.falb-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.falb-ansicht button { appearance: none; border: 1px solid #141414; border-radius: 0; background: rgba(255, 255, 255, .85); color: #141414; cursor: pointer;
  font: 500 12px/1 Roboto, "Helvetica Neue", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 12px 16px; min-height: 40px; }
.falb-ansicht .falb-knoepfe button { display: inline-flex; align-items: center; gap: 8px; }
.falb-ansicht .falb-knoepfe svg { flex: none; display: block; }
.falb-ansicht button:hover:not(:disabled) { background: #141414; color: #fff; }
.falb-ansicht button:disabled { border-color: #bdbab4; color: #a9a6a0; background: transparent; cursor: default; }
.falb-ansicht button[aria-pressed="true"] { background: #141414; color: #fff; }
.falb-ansicht button:focus-visible { outline: 2px solid #141414; outline-offset: 3px; }
.falb-ansicht .falb-zu { font-size: 22px; letter-spacing: 0; line-height: 1; width: 44px; height: 44px; padding: 0; }
.falb-ansicht [hidden] { display: none !important; }
/* Ersatz ohne WebGL */
.falb-ersatz { position: absolute; inset: 0; overflow: auto; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-content: start; }
.falb-ersatz img { display: block; width: 100%; height: auto; background: #fff; }
@media (max-width: 760px) {
  /* Telefon: eine schmale Knopfzeile, das Buch bekommt den Platz */
  .falb-leiste { grid-template-columns: 1fr; justify-items: center; gap: 6px; min-height: 0; padding-top: 6px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .falb-leiste .falb-stand { justify-self: center; font-size: 11px; }
  .falb-knoepfe { gap: 10px; flex-wrap: nowrap; }
  /* nur Symbole: vier gleich große Knöpfe */
  .falb-ansicht .falb-knoepfe button { width: 40px; height: 40px; min-height: 0; padding: 0; justify-content: center; }
  .falb-ansicht .falb-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .falb-ansicht .falb-zu { width: 38px; height: 38px; font-size: 20px; }
  .falb-titel strong { font-size: 16px; }
  .falb-kopf { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 6px; }
  .falb-tisch { inset: 0 0 calc(82px + env(safe-area-inset-bottom, 0px)) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .falb-umschlag .falb-bild, .falb-namen { transition: none; }
}
