/*
============================================================
 ROHFELD PROJEKT — rohfeld.com
 © 2026 Rohfeld. Alle Rechte vorbehalten.
 Datei: assets/css/business.css
 Letzte Aktualisierung: 25.07.2026, 14:47 Uhr (Berlin)
============================================================
*/
.biz-body { background: var(--bg, #e8e7e4); }
.biz-sub { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #8a8985; margin-left: 10px; }
.biz-nav { display: flex; gap: 18px; margin-left: auto; }
.biz-nav a { font-size: 13px; color: #3a3a38; text-decoration: none; }
.biz-account { font-size: 12.5px; color: #6d6c68; }
.biz-main { padding-bottom: 28px; }
.biz-wrap { padding-top: 24px; }
.biz-narrow { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.biz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.biz-head h1 { margin: 4px 0 0; font-size: clamp(24px, 3vw, 34px); }
.biz-head-actions { display: flex; gap: 8px; align-items: center; }
.biz-month { font-weight: 600; letter-spacing: .08em; padding: 0 6px; }
.biz-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.biz-dow { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #8a8985; padding: 2px 4px; }
.biz-cell { min-height: 84px; border: 1px solid #e5e2dc; border-radius: 10px; background: #fff; padding: 6px; }
.biz-cell.is-today { border-color: #1c2126; }
.biz-empty { background: transparent; border-color: transparent; }
.biz-day { font-size: 11px; color: #8a8985; }
.biz-chip { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.35; background: #f4f3f0; border: 1px solid #e5e2dc; border-radius: 7px; padding: 3px 6px; text-decoration: none; color: #1c2126; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.biz-chip.s-abgesagt { text-decoration: line-through; opacity: .55; }
.biz-chip.s-beendet { opacity: .6; }
.biz-h2 { font-size: 17px; margin: 22px 0 10px; }
.biz-list { display: grid; gap: 8px; }
.biz-row { display: flex; gap: 12px; align-items: center; border: 1px solid #e5e2dc; border-radius: 10px; background: #fff; padding: 11px 14px; text-decoration: none; color: inherit; font-size: 13px; }
.biz-row b { min-width: 86px; }
.biz-row span { flex: 1; color: #4b4b49; }
.biz-search { display: flex; gap: 8px; margin-bottom: 10px; }
.biz-search input { flex: 1; border: 1px solid #d9d6cf; border-radius: 9px; padding: 10px 13px; font: 400 14px/1.4 var(--sans, sans-serif); }
.biz-found { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.biz-user { text-align: left; border: 1px solid #e5e2dc; border-radius: 9px; background: #fff; padding: 9px 12px; cursor: pointer; font: inherit; }
.biz-user.is-on { border-color: #1c2126; }
.biz-user b { display: block; font-size: 13px; }
.biz-user span { font-size: 12px; color: #6d6c68; }
.biz-form label { display: block; font-size: 12.5px; color: #4b4b49; margin-bottom: 11px; }
.biz-form input, .biz-form select { width: 100%; margin-top: 5px; border: 1px solid #d9d6cf; border-radius: 9px; padding: 10px 13px; font: 400 14px/1.4 var(--sans, sans-serif); background: #fff; }
.biz-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.biz-hint { font-size: 12px; color: #8a8985; }
.biz-btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.biz-btnrow form { display: inline; }
.biz-note { font-size: 13px; color: #4b4b49; white-space: pre-wrap; }
.biz-center { min-height: calc(100vh - 40px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.biz-lobby, .biz-gone { max-width: 480px; text-align: center; }
.biz-lobby h1 { font-size: 22px; margin: 14px 0 4px; }
.biz-record-note { color: #c62828; font-size: 12.5px; font-weight: 500; }
.biz-join-btn { margin: 10px 0; }

/* Raum */
.biz-bare .biz-main { padding: 0; }
.biz-room { display: grid; grid-template-columns: 1fr 300px; gap: 0; height: 100vh; height: 100dvh; background: #101315; }
.biz-stage { position: relative; display: flex; flex-direction: column; }
.biz-videos { position: relative; flex: 1; overflow: hidden; }
#remoteVideo { width: 100%; height: 100%; object-fit: cover; background: #0a0c0d; }
#localVideo { position: absolute; right: 14px; bottom: 14px; width: min(26%, 200px); border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: #000; }
.biz-audio-only #remoteVideo, .biz-audio-only #localVideo { display: none; }
.biz-avatars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 26px; }
.biz-avatars .p2-avatar { width: 92px; height: 92px; font-size: 30px; background: #23282c; }
.biz-status { position: absolute; top: 12px; left: 14px; color: #cfd3d6; font-size: 12.5px; background: rgba(0,0,0,.35); border-radius: 999px; padding: 5px 12px; }
.biz-recbadge { position: absolute; top: 12px; right: 14px; color: #ff6b6b; font-size: 12px; background: rgba(0,0,0,.45); border-radius: 999px; padding: 5px 12px; }
.biz-controls { display: flex; justify-content: center; gap: 14px; padding: 14px; background: #15181b; }
.biz-ctl { width: 50px; height: 50px; border-radius: 50%; border: 0; background: #262b30; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.biz-ctl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.biz-ctl.is-off { background: #6d6c68; }
.biz-end { background: #c62828; }
.biz-notes { background: #fff; display: flex; flex-direction: column; padding: 16px; gap: 8px; }
.biz-notes textarea { flex: 1; resize: none; border: 1px solid #d9d6cf; border-radius: 10px; padding: 12px; font: 400 13.5px/1.6 var(--sans, sans-serif); }
.biz-notes textarea:focus { outline: none; border-color: #1c2126; }
.biz-saved { font-size: 11px; color: #1e5c2a; min-height: 14px; }
@media (max-width: 860px) {
  .biz-room { grid-template-columns: 1fr; grid-template-rows: 1fr 200px; }
  .biz-found, .biz-2col { grid-template-columns: 1fr; }
  #localVideo { width: 32%; }
  .biz-grid { gap: 4px; }
  .biz-cell { min-height: 58px; }
}

/* Code-Eingabe */
.biz-codeform { display: flex; gap: 10px; justify-content: center; margin: 14px 0 6px; }
.biz-codeform input { width: 170px; text-align: center; font: 700 26px/1.2 var(--sans, sans-serif); letter-spacing: 8px; border: 1px solid #d9d6cf; border-radius: 12px; padding: 12px 8px; }
.biz-codeform input:focus { outline: none; border-color: #1c2126; }
.biz-code { font-size: 14px; }
.biz-code b { font-size: 20px; letter-spacing: 4px; }

/* Unterleiste im Business-Center (Admin-Ansicht) */
.biz-subnav { border-bottom: 1px solid #e5e2dc; background: #fff; }
.biz-subnav-in { display: flex; gap: 18px; align-items: center; padding: 8px 0; }
.biz-subnav-t { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #8a8985; margin-right: 4px; }
.biz-subnav a { font-size: 12.5px; color: #3a3a38; text-decoration: none; }
.biz-subnav a:hover { color: #000; }

/* ===== Selected-by ===== */
.sb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.sb-side { display: grid; gap: 14px; align-content: start; }
.sb-addrow { display: flex; gap: 10px; margin: 10px 0 14px; }
.sb-addrow input { flex: 1; border: 1px solid #d9d6cf; border-radius: 9px; padding: 10px 13px; font: 400 13.5px/1.4 var(--sans, sans-serif); }
.sb-prodgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sb-prodcard { border: 1px solid #e5e2dc; border-radius: 11px; background: #fff; padding: 10px; display: grid; gap: 6px; font-size: 12.5px; }
.sb-prodcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.sb-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: #f4f3f0; border-radius: 8px; color: #b9b8b4; letter-spacing: .2em; font-size: 11px; }

.sb-album { position: relative; min-height: 100vh; background: #f7f6f4; padding-bottom: 90px; user-select: none; -webkit-user-select: none; }
.sb-wm { position: fixed; inset: -10%; display: flex; flex-wrap: wrap; gap: 70px 90px; transform: rotate(-22deg); pointer-events: none; z-index: 5; opacity: .07; }
.sb-wm span { font: 600 13px/1 var(--sans, sans-serif); letter-spacing: .12em; white-space: nowrap; color: #1c2126; }
.sb-head { text-align: center; padding: 34px 18px 10px; position: relative; z-index: 2; }
.sb-head h1 { font-size: clamp(24px, 4vw, 36px); margin: 12px 0 6px; }
.sb-sub { color: #6d6c68; font-size: 13px; margin: 0; }
.sb-warn { display: inline-block; margin-top: 10px; font-size: 12px; color: #c62828; background: #fdeeee; border-radius: 999px; padding: 5px 14px; }
.sb-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; max-width: 1100px; margin: 22px auto 0; padding: 0 18px; }
.sb-card { text-align: left; border: 1.5px solid #e5e2dc; border-radius: 14px; background: #fff; padding: 12px; display: grid; gap: 7px; cursor: pointer; font: inherit; transition: border-color .15s, transform .12s; }
.sb-card:hover { transform: translateY(-2px); }
.sb-card.is-on { border-color: #1c2126; }
.sb-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; pointer-events: none; }
.sb-card b { font-size: 14px; }
.sb-card em { font-style: normal; font-size: 12px; color: #6d6c68; line-height: 1.55; }
.sb-pick { justify-self: start; font-size: 11.5px; letter-spacing: .08em; border: 1px solid #d9d6cf; border-radius: 999px; padding: 4px 12px; color: #6d6c68; }
.sb-pick i { font-style: normal; opacity: 0; }
.sb-card.is-on .sb-pick { background: #1c2126; border-color: #1c2126; color: #fff; }
.sb-card.is-on .sb-pick i { opacity: 1; }
.sb-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 16px; background: #fff; border-top: 1px solid #e5e2dc; padding: 12px 18px; }
.sb-progress { flex: 1; height: 7px; border-radius: 999px; background: #ececea; overflow: hidden; }
.sb-progress i { display: block; height: 100%; background: #1c2126; transition: width .2s; }
.sb-count { font-size: 13px; white-space: nowrap; }
.sb-done { color: #1e5c2a; font-weight: 600; font-size: 13.5px; }
@media (max-width: 860px) { .sb-grid2 { grid-template-columns: 1fr; } }

/* Katalog-Wizard */
.sbw-top { margin-bottom: 12px; }
.sbw-top input { width: 100%; max-width: 460px; border: 1px solid #d9d6cf; border-radius: 999px; padding: 10px 18px; font: 400 13.5px/1.4 var(--sans, sans-serif); }
.sbw-cols { display: grid; grid-template-columns: 1fr 270px; gap: 16px; align-items: start; }
.sbw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 11px; max-height: 62vh; overflow-y: auto; padding: 4px; }
.sbw-card { position: relative; border: 1.5px solid #e5e2dc; border-radius: 12px; background: #fff; padding: 9px; display: grid; gap: 5px; cursor: pointer; font-size: 12px; }
.sbw-card input { position: absolute; opacity: 0; pointer-events: none; }
.sbw-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.sbw-card b { font-size: 12px; line-height: 1.4; font-weight: 600; }
.sbw-card em { font-style: normal; color: #8a8985; font-size: 11px; }
.sbw-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #1c2126; color: #fff; display: none; align-items: center; justify-content: center; font-size: 12px; }
.sbw-card:has(input:checked) { border-color: #1c2126; }
.sbw-card:has(input:checked) .sbw-check { display: inline-flex; }
.sbw-side { position: sticky; top: 90px; border: 1px solid #e5e2dc; border-radius: 12px; background: #fff; padding: 14px; max-height: 62vh; overflow-y: auto; }
@media (max-width: 900px) { .sbw-cols { grid-template-columns: 1fr; } .sbw-side { position: static; } }

/* Album: Galerie-Popup + Autosave */
.sb-autosave { color: #1e5c2a; }
.sb-saved { font-size: 12px; color: #1e5c2a; min-width: 86px; }
.sb-dialog { max-width: 680px; }
.sb-gal-main { width: 100%; max-height: 46vh; object-fit: contain; border-radius: 10px; background: #f4f3f0; }
.sb-gal-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.sb-gal-thumbs img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; flex: none; }
.sb-gal-thumbs img.is-on { border-color: #1c2126; }
.sb-desc { margin-top: 12px; font-size: 13px; color: #4b4b49; line-height: 1.7; max-height: 20vh; overflow-y: auto; }

/* Kompakte Ein-Bildschirm-Seite (Code-Eingabe) */
body:has(.biz-center) { display: flex; flex-direction: column; min-height: 100vh; }
.biz-main.biz-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 34px 18px; }
.biz-mini-footer { border-top: 1px solid #e5e2dc; padding: 14px 18px; display: flex; gap: 20px; justify-content: center; align-items: center; font-size: 12px; color: #8a8985; background: #fff; }
.biz-mini-footer a { color: #6d6c68; text-decoration: none; }
.biz-mini-footer a:hover { color: #000; }

/* Code-Screen: kompakt, eine Seite */
.biz-codewrap { display: flex; justify-content: center; padding: 46px 18px 56px; }
.biz-codecard { max-width: 400px; width: 100%; text-align: center; padding: 26px 24px 22px; display: grid; gap: 7px; justify-items: center; }
.biz-codecard h1 { font-size: 20px; margin: 6px 0 0; }
.biz-codecard p { font-size: 13px; color: #6d6c68; margin: 0; }
.biz-codecard .biz-codeform { margin: 10px 0 2px; }
.biz-codecard .biz-codeform input { width: 150px; font-size: 21px; letter-spacing: 6px; padding: 10px 8px; }
.biz-codecard .biz-hint { font-size: 11.5px; }
