/* CoraOS – Whiteboard */
.wb-seite { height: 100%; }
.wb-huelle { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: 100%; }
.wb-boards { border-right: 1px solid var(--linie); display: flex; flex-direction: column; min-height: 0; background: rgba(12, 13, 16, .5); }
.wb-boards-kopf { display: flex; justify-content: space-between; align-items: center; padding: 22px 18px 12px; font-size: 18px; letter-spacing: -.02em; }
.wb-bliste { flex: 1; overflow-y: auto; padding: 0 10px; display: grid; gap: 4px; align-content: start; }
.wb-bitem { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: background-color 140ms ease, transform 140ms var(--ease-out); }
.wb-bitem:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .wb-bitem:hover { background: var(--flaeche); } }
.wb-bitem.aktiv { background: var(--flaeche-2); border-color: var(--linie-2); }
.wb-bvorschau { width: 54px; height: 36px; border-radius: 7px; background: var(--bg-2); flex: none; overflow: hidden; border: 1px solid var(--linie); }
.wb-bvorschau img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-bitem .t { font-weight: 550; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-bitem .m { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.wb-bakt { display: flex; gap: 2px; opacity: 0; transition: opacity 140ms ease; }
.wb-bitem:hover .wb-bakt, .wb-bitem.aktiv .wb-bakt { opacity: 1; }
.wb-bakt button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); cursor: pointer; padding: 0; }
.wb-bakt button:hover { background: var(--flaeche-3); color: var(--text); } .wb-bakt button.gefahr:hover { color: var(--schlecht); }
.wb-bakt svg { width: 14px; height: 14px; }
.wb-bneu { margin: 10px; border-style: dashed; }
.wb-rahmen { position: relative; overflow: hidden; min-height: 0; }
.wb-werkzeuge { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 3px; padding: 5px; border-radius: 14px; background: rgba(22, 24, 29, .92); border: 1px solid var(--linie-2); backdrop-filter: blur(10px); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .7); max-width: calc(100% - 24px); overflow-x: auto; }
.wb-tool { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; transition: background-color 120ms ease, color 120ms ease, transform 120ms var(--ease-out); }
.wb-tool:active { transform: scale(0.92); }
.wb-tool svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .wb-tool:hover { background: var(--flaeche-3); color: var(--text); } }
.wb-tool.aktiv { background: var(--akzent); color: #1c0e04; }
.wb-listen-knopf { display: none; }
.wb-trenner { width: 1px; height: 22px; background: var(--linie-2); margin: 0 4px; flex: none; }
.wb-farben { display: flex; gap: 4px; }
.wb-farbe { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); cursor: pointer; flex: none; padding: 0; transition: transform 120ms var(--ease-out); }
.wb-farbe.aktiv { border-color: var(--text); transform: scale(1.15); }
.wb-status { font-size: 11.5px; color: var(--text-3); padding: 0 8px; white-space: nowrap; min-width: 84px; }
.wb-buehne { position: absolute; inset: 0; overflow: hidden; touch-action: none; --raster: 24px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: var(--raster) var(--raster); }
.wb-buehne[data-tool=pen], .wb-buehne[data-tool=rect], .wb-buehne[data-tool=arrow] { cursor: crosshair; }
.wb-buehne[data-tool=note], .wb-buehne[data-tool=text] { cursor: copy; }
.wb-buehne[data-tool=eraser] { cursor: not-allowed; }
.wb-buehne.schieben { cursor: grabbing; }
.wb-welt { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.wb-svg { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.wb-linie { cursor: pointer; } .wb-linie.sel { filter: drop-shadow(0 0 4px rgba(255, 122, 47, .9)); }
.wb-el { position: absolute; box-sizing: border-box; user-select: none; }
.wb-el.sel { outline: 2px solid rgba(255, 122, 47, .9); outline-offset: 3px; }
.wb-el.tippt { outline: 2px dashed rgba(255, 122, 47, .9); outline-offset: 4px; }
.wb-note { border-radius: 3px 3px 14px 3px; color: #1f1a14; padding: 12px 12px 16px; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .8); font: 500 14px/1.4 var(--schrift); overflow: hidden; }
.wb-text { font-weight: 650; line-height: 1.25; white-space: pre-wrap; letter-spacing: -.01em; }
.wb-txt { outline: none; white-space: pre-wrap; word-break: break-word; min-height: 1em; height: 100%; }
.wb-txt[contenteditable=true] { cursor: text; user-select: text; }
.wb-txt:empty::before { content: 'Text eingeben …'; opacity: .45; } .wb-note .wb-txt:empty::before { content: 'Notiz …'; }
.wb-rect { border: 3px solid; border-radius: 12px; }
.wb-griff { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 4px; background: var(--akzent); border: 2px solid var(--bg); cursor: nwse-resize; display: none; }
.wb-el.sel .wb-griff { display: block; }
.wb-auswahl { position: absolute; z-index: 6; transform: translateX(-50%) translateY(6px); display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 11px; background: rgba(22, 24, 29, .96); border: 1px solid var(--linie-2); opacity: 0; pointer-events: none; transition: opacity 140ms ease, transform 160ms var(--ease-out); }
.wb-auswahl.zeigen { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.wb-auswahl button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; }
.wb-auswahl button:hover { background: var(--flaeche-3); color: var(--text); } .wb-auswahl button.gefahr:hover { color: var(--schlecht); }
.wb-auswahl svg { width: 16px; height: 16px; }
.wb-titel { position: absolute; left: 16px; bottom: 16px; z-index: 5; font-size: 13px; font-weight: 600; color: var(--text-2); background: rgba(22, 24, 29, .85); padding: 7px 12px; border-radius: 10px; border: 1px solid var(--linie); pointer-events: none; }
.wb-titel:empty { display: none; }
.wb-zoom { position: absolute; right: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(22, 24, 29, .9); border: 1px solid var(--linie-2); font-size: 12px; }
.wb-zoom span { min-width: 46px; text-align: center; }
.wb-leer { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.wb-leer > div { display: grid; justify-items: center; gap: 6px; color: var(--text-3); text-align: center; max-width: 340px; }
.vorlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.vorlage { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--linie-2); background: var(--bg-2); cursor: pointer; text-align: center; transition: border-color 140ms ease, background-color 140ms ease, transform 140ms var(--ease-out); }
.vorlage:active { transform: scale(0.97); }
.vorlage span { font-size: 24px; } .vorlage b { font-size: 13px; } .vorlage small { font-size: 11.5px; color: var(--text-3); }
.vorlage.an { border-color: var(--akzent); background: var(--akzent-hauch); }
@media (max-width: 860px) {
  .wb-huelle { grid-template-columns: 1fr; }
  .wb-boards { display: none; position: absolute; inset: 0; z-index: 10; background: var(--bg); }
  .wb-huelle.liste-offen .wb-boards { display: flex; }
  .wb-listen-knopf { display: grid; }
  .wb-werkzeuge { top: 8px; }
}
