/* Digitale Binder (/binder/) */
.bd-hero .bd-used { margin-top: 10px; color: var(--text-dim); font-weight: 800; font-size: 0.9rem; }
.bd-new { margin: 14px 0 0; }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bd-card { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--card-bg); border: 1.5px solid var(--card-border); border-radius: 16px; padding: 14px; color: #fff; font: inherit; cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.bd-card:hover { border-color: var(--poke-cyan, #38bdf8); transform: translateY(-2px); }
.bd-card-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bd-card-info b { font-size: 1.05rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-card-info small { color: var(--text-dim); font-weight: 700; }
.bd-cover { position: relative; flex: 0 0 auto; width: 56px; height: 72px; border-radius: 6px 10px 10px 6px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: inset 6px 0 0 rgba(0,0,0,0.28), 0 6px 14px rgba(0,0,0,0.45); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px 0 16px; }
.bd-cover i { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.45); }
.bd-cover.big { width: 84px; height: 108px; padding-left: 22px; gap: 9px; }
.bd-empty { border: 2px dashed var(--card-border); border-radius: 22px; padding: 56px 22px; text-align: center; color: #fff; }
.bd-empty-ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: rgba(147,51,234,0.16); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.bd-empty h2 { font-size: 1.3rem; font-weight: 900; margin-bottom: 8px; }
.bd-empty p { color: var(--text-dim); max-width: 420px; margin: 0 auto 20px; line-height: 1.5; }
.bd-empty-btn { margin: 0; }
.bd-head { display: flex; gap: 18px; align-items: center; position: relative; z-index: 1; }
.bd-head-main { min-width: 0; }
.bd-head h1 { margin: 0 0 8px; overflow-wrap: anywhere; }
.bd-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-dim); font-weight: 800; font-size: 0.9rem; margin-bottom: 12px; }
.bd-stats b { color: #fff; }
.bd-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-danger { color: #fca5a5; }
.bd-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 14px; }
.bd-pageno { font-weight: 900; color: #fff; min-width: 110px; text-align: center; }
.bd-page { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); box-shadow: inset 8px 0 0 rgba(0,0,0,0.25), 0 14px 34px rgba(0,0,0,0.5); max-width: 640px; margin: 0 auto 28px; }
.bd-slot { position: relative; aspect-ratio: 5 / 7; border: 0; padding: 0; border-radius: 6px; background: rgba(0,0,0,0.38); overflow: hidden; cursor: pointer; color: rgba(255,255,255,0.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.bd-slot.empty span { font-size: 1.6rem; font-weight: 300; }
.bd-slot.empty:hover { background: rgba(255,255,255,0.12); }
.bd-slot img, .bd-pickcard img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-slot-name { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.7rem; font-weight: 800; padding: 6px; height: 100%; color: #e2e8f0; }
.bd-var { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,0.72); color: #facc15; font-size: 0.6rem; font-weight: 900; text-transform: uppercase; padding: 2px 5px; border-radius: 5px; }
.bd-loading { padding: 40px 12px; text-align: center; color: var(--text-dim); font-weight: 800; }
/* Dialoge */
body.bd-lock { overflow: hidden; }
.bd-ov { position: fixed; inset: 0; z-index: 3200; display: flex; align-items: flex-end; justify-content: center; }
.bd-ov-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.bd-sheet { position: relative; width: min(560px, 100%); max-height: 88dvh; overflow-y: auto; background: var(--card-bg, #121826); border: 1.5px solid var(--card-border); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); color: #fff; }
.bd-sheet.big { height: 88dvh; }
.bd-sheet.small { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .bd-ov { align-items: center; } .bd-sheet { border-radius: 22px; border-bottom: 1.5px solid var(--card-border); } .bd-sheet.big { height: 80dvh; } }
.bd-sheet h2 { font-size: 1.2rem; font-weight: 900; margin: 0 0 14px; }
.bd-lbl { display: block; margin: 16px 0 8px; color: var(--text-dim); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.bd-input { width: 100%; background: #090c15; color: #fff; border: 2px solid #6d28d9; border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 1rem; outline: none; box-sizing: border-box; }
.bd-colors { display: flex; gap: 12px; flex-wrap: wrap; }
.bd-color { width: 42px; height: 42px; border-radius: 50%; border: 3px solid transparent; background: var(--c); color: #fff; font-weight: 900; cursor: pointer; }
.bd-color.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.bd-layouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-layout { display: flex; align-items: center; gap: 12px; text-align: left; background: #0f1422; border: 1.5px solid var(--card-border); border-radius: 14px; padding: 14px; color: #cbd5e1; font: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer; }
.bd-layout.on { border-color: #8b5cf6; background: rgba(139,92,246,0.14); color: #c4b5fd; }
.bd-mini { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px; width: 36px; flex: 0 0 auto; }
.bd-mini i { display: block; aspect-ratio: 1; border-radius: 1.5px; background: currentColor; opacity: 0.7; }
.bd-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

.bd-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bd-pick-head h2 { margin: 0; }
.bd-x { background: none; border: 1.5px solid var(--card-border); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.bd-langs { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.bd-lang { background: #0f1422; border: 1.5px solid var(--card-border); color: #cbd5e1; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 900; font-size: 0.8rem; cursor: pointer; }
.bd-lang.on { background: var(--poke-yellow, #facc15); border-color: transparent; color: #0f172a; }
.bd-setlist { display: flex; flex-direction: column; gap: 8px; }
.bd-setrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #0f1422; border: 1.5px solid var(--card-border); border-radius: 12px; padding: 13px 14px; color: #fff; font: inherit; cursor: pointer; text-align: left; }
.bd-setrow:hover { border-color: #8b5cf6; }
.bd-setrow small { color: var(--text-dim); font-weight: 700; }
.bd-pick-bar { display: flex; gap: 10px; margin: 6px 0 12px; align-items: center; }
.bd-pick-bar .bd-input { flex: 1; padding: 10px 12px; }
.bd-pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bd-pickcard { position: relative; aspect-ratio: 5 / 7; padding: 0; border: 1.5px solid var(--card-border); border-radius: 8px; overflow: hidden; background: #0f1422; cursor: pointer; }
.bd-pickcard.used { opacity: 0.55; }
.bd-inb { position: absolute; left: 0; right: 0; top: 0; background: rgba(5,150,105,0.9); color: #fff; font-size: 0.6rem; font-weight: 900; padding: 2px 4px; text-align: center; }
@media (max-width: 520px) { .bd-head { gap: 12px; } .bd-cover.big { width: 64px; height: 84px; padding-left: 16px; gap: 7px; } .bd-layouts { grid-template-columns: 1fr 1fr; } .bd-layout { padding: 12px 10px; font-size: 0.8rem; } }

.bd-movebar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; max-width: 640px; margin: 0 auto 12px; padding: 10px 14px; border-radius: 12px; background: rgba(250,204,21,0.14); border: 1.5px solid rgba(250,204,21,0.5); color: #fff; font-weight: 800; font-size: 0.85rem; }
.bd-slot.moving { outline: 3px solid var(--poke-yellow, #facc15); outline-offset: -3px; opacity: 0.6; }
.bd-slot[draggable="true"] { cursor: grab; }

/* Binder-Schaltflaechen: einheitlich in Dunkel und Hell (Hell-Variante in theme-light.design.css) */
.bd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--card-border); background: rgba(255,255,255,0.05); color: var(--text); font: inherit; font-size: 0.85rem; font-weight: 800; line-height: 1.1; cursor: pointer; white-space: nowrap; transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s; }
.bd-btn:hover { border-color: var(--poke-cyan); background: rgba(56,189,248,0.1); transform: translateY(-1px); }
.bd-btn:active { transform: none; }
.bd-btn[disabled] { opacity: 0.35; cursor: default; transform: none; pointer-events: none; }
.bd-btn:focus-visible { outline: 2px solid var(--poke-cyan); outline-offset: 2px; }
.bd-btn-primary { background: linear-gradient(135deg, var(--poke-yellow), var(--poke-gold)); border-color: transparent; color: #0f172a; box-shadow: 0 6px 18px rgba(234,179,8,0.25); }
.bd-btn-primary:hover { background: linear-gradient(135deg, var(--poke-yellow), var(--poke-gold)); border-color: transparent; filter: brightness(1.06); box-shadow: 0 8px 22px rgba(234,179,8,0.35); }
.bd-btn-danger { color: #fca5a5; border-color: rgba(239,68,68,0.45); background: rgba(239,68,68,0.08); }
.bd-btn-danger:hover { border-color: #ef4444; background: rgba(239,68,68,0.16); }
.bd-btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 1.5rem; font-weight: 700; padding-bottom: 3px; }
.bd-btn-lg { min-height: 48px; padding: 0 24px; font-size: 0.95rem; }
.bd-act { display: flex; width: 100%; margin: 0 0 10px; min-height: 48px; }
.bd-actions .bd-btn { min-width: 110px; }
.bd-tools .bd-btn { min-height: 36px; padding: 0 13px; font-size: 0.8rem; }

.bd-grab { display: none; }
@media (max-width: 699px) {
  .bd-grab { display: block; width: 44px; height: 5px; margin: -10px auto 14px; border-radius: 99px; background: rgba(255,255,255,.3); }
  .bd-sheet { animation: bdUp .24s ease-out; touch-action: pan-y; }
  .bd-ov-bg { animation: bdFade .24s ease-out; }
}
@keyframes bdUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes bdFade { from { opacity: 0; } to { opacity: 1; } }

@keyframes bdDown { to { transform: translateY(100%); } }
@keyframes bdOut { to { opacity: 0; } }
@keyframes bdScaleOut { to { opacity: 0; transform: scale(.97); } }
.bd-ov.closing { pointer-events: none; }
.bd-ov.closing .bd-ov-bg { animation: bdOut .21s ease-in forwards; }
.bd-ov.closing .bd-sheet { animation: bdScaleOut .2s ease-in forwards; }
@media (max-width: 699px) { .bd-ov.closing .bd-sheet { animation: bdDown .21s ease-in forwards; } }
@media (max-width: 699px) { .bd-ov.closing .bd-ov-bg { animation: bdDimOut .21s linear forwards; } }
@keyframes bdDimOut { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* Titel-Banner der Binder-Liste */
.bd-hero-main { padding: 28px 26px; min-height: 190px; display: flex; align-items: center; border-color: rgba(250,204,21,0.28); }
.bd-hero-body { position: relative; z-index: 1; max-width: 560px; }
.bd-hero-main .cx-title-row { gap: 12px; flex-wrap: nowrap; }
.bd-hero-main h1 { font-size: 2rem; letter-spacing: -0.8px; }
.bd-title-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; font-size: 1.4rem; background: rgba(250,204,21,0.14); border: 1.5px solid rgba(250,204,21,0.4); box-shadow: 0 6px 18px rgba(250,204,21,0.18); }
.bd-hero-main .setguide-hero-sub { font-size: 0.92rem; max-width: 46ch; }
.bd-hero-main .bd-used { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(9,12,21,0.5); border: 1px solid var(--card-border); font-size: 0.8rem; }
.bd-hero-art { position: absolute; right: 44px; top: 50%; width: 150px; height: 150px; transform: translateY(-50%); pointer-events: none; }
.bd-hero-art .bd-fan { position: absolute; left: 50%; bottom: 8px; width: 74px; height: 96px; margin-left: -37px; transform-origin: 50% 100%; box-shadow: inset 6px 0 0 rgba(0,0,0,0.28), 0 10px 22px rgba(0,0,0,0.5); }
.bd-fan-0 { transform: translateX(-46px) rotate(-14deg); }
.bd-fan-1 { transform: translateX(46px) rotate(14deg); }
.bd-fan-2 { transform: translateY(-8px); z-index: 1; }
@media (max-width: 620px) {
  .bd-hero-main { padding: 20px 16px; min-height: 0; }
  .bd-hero-main h1 { font-size: 1.5rem; }
  .bd-title-ico { width: 36px; height: 36px; font-size: 1.15rem; border-radius: 11px; }
  .bd-hero-art { right: -26px; top: 18px; transform: scale(0.62); transform-origin: 100% 0; opacity: 0.55; }
}
