/* Umschreib-Editor — Texte und Links. Nur lokal aktiv. */

.bbe-toggle {
  display: none;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 220;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 2px;
  background: rgba(18, 18, 18, .82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  font: 500 12px/1 Inter, -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.bbe-toggle:hover { background: rgba(18, 18, 18, .95); }

.bbe-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 230;
  display: none;
  flex-direction: column;
  width: 420px;
  max-width: 100vw;
  height: 100dvh;
  background: rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: #121212;
  font: 400 12px/1.45 Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  box-shadow: -8px 0 40px rgba(18, 18, 18, .16);
}
.bbe-panel[data-open] { display: flex; }

.bbe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(18, 18, 18, .1);
}
.bbe-head strong {
  font: 500 11px/1 Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6E6E6E;
}
.bbe-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 2px;
  background: #F5F5F5;
  color: #121212;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.bbe-close:hover { background: #EDEDED; }

.bbe-search { padding: 12px 16px; border-bottom: 1px solid rgba(18, 18, 18, .08); }
.bbe-search input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid rgba(18, 18, 18, .18);
  border-radius: 2px;
  background: #fff;
  color: #121212;
  font: inherit;
}
.bbe-search input:focus { outline: 2px solid #33A0F9; outline-offset: -1px; }

.bbe-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 18, 18, .22) transparent;
}
.bbe-scroll::-webkit-scrollbar { width: 6px; }
.bbe-scroll::-webkit-scrollbar-thumb { background: rgba(18, 18, 18, .2); border-radius: 3px; }

.bbe-group { border-bottom: 1px solid rgba(18, 18, 18, .09); }
.bbe-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font: 500 10.5px/1 Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6E6E6E;
}
.bbe-group > summary::-webkit-details-marker { display: none; }
.bbe-group > summary:hover { color: #121212; }
.bbe-group > summary::after { content: '+'; font-size: 13px; opacity: .5; }
.bbe-group[open] > summary::after { content: '–'; }
.bbe-group > .bbe-body { padding-bottom: 12px; }

.bbe-project { border-top: 1px solid rgba(18, 18, 18, .07); }
.bbe-project > summary {
  padding: 9px 0;
  cursor: pointer;
  list-style: none;
  font: 500 12px/1.3 Inter, -apple-system, Arial, sans-serif;
}
.bbe-project > summary::-webkit-details-marker { display: none; }
.bbe-project > summary span { color: #9A9A9A; font-weight: 400; font-size: 10.5px; }
.bbe-project[open] > summary { color: #121212; }

.bbe-field { display: block; margin: 0 0 10px; }
.bbe-field[hidden] { display: none; }
.bbe-field:last-child { margin-bottom: 0; }
.bbe-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  color: #6E6E6E;
  font: 500 10.5px/1.2 Inter, -apple-system, Arial, sans-serif;
}
.bbe-field.is-dirty .bbe-label { color: #121212; }
.bbe-reset {
  width: 18px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: none;
  color: #9A9A9A;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  visibility: hidden;
}
.bbe-field.is-dirty .bbe-reset { visibility: visible; }
.bbe-reset:hover { background: #EDEDED; color: #121212; }

.bbe-input {
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  box-sizing: border-box;
  border: 1px solid rgba(18, 18, 18, .18);
  border-radius: 2px;
  background: #fff;
  color: #121212;
  font: 400 12px/1.45 Inter, -apple-system, Arial, sans-serif;
}
textarea.bbe-input { resize: vertical; min-height: 64px; }
.bbe-input:focus { outline: 2px solid #33A0F9; outline-offset: -1px; }
.bbe-hint { margin: 3px 0 0; color: #9A9A9A; font-size: 10.5px; line-height: 1.35; }

.bbe-check { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.bbe-check input { width: 14px; height: 14px; }

.bbe-tab { padding: 8px 0 4px; border-top: 1px dashed rgba(18, 18, 18, .12); margin-top: 10px; }
.bbe-tab:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.bbe-tab-name { margin-bottom: 6px; color: #9A9A9A; font-size: 10.5px; }

.bbe-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(18, 18, 18, .1);
  background: #fff;
}
.bbe-status { flex: 1; color: #6E6E6E; font-size: 11px; }
.bbe-status[data-error] { color: #C0392B; }
.bbe-btn {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: #F5F5F5;
  color: #121212;
  font: 500 11px/1 Inter, -apple-system, Arial, sans-serif;
  cursor: pointer;
}
.bbe-btn:hover { background: #EDEDED; }
.bbe-btn[data-primary] { background: #121212; color: #fff; }
.bbe-btn[data-primary]:disabled { opacity: .35; cursor: default; }
.bbe-btn[data-primary]:hover { background: #000; }

.bbe-note { margin: 10px 0 0; color: #9A9A9A; font-size: 10.5px; line-height: 1.4; }

@media (max-width: 719px) {
  .bbe-panel { width: 100vw; }
  .bbe-toggle { bottom: 12px; left: 12px; }
}
