/* BAREBASTIAN – Konto-Button und Profil-Overlay */
.bba-root,
.bba-root * {
  box-sizing: border-box;
}
.bba-root {
  --bba-accent: #00e5ff;
  --bba-panel: #0b111c;
  --bba-line: rgba(255, 255, 255, 0.1);
  --bba-text: #f1f5f9;
  --bba-muted: #94a3b8;
  --bba-danger: #fb7185;
  --bba-ok: #34d399;
  font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--bba-text);
}

/* ---------- Button oben rechts ---------- */
.bba-trigger {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(8, 51, 68, 0.72);
  color: #a5f3fc;
  font: 600 12px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.18);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
}
.bba-trigger:hover {
  background: rgba(14, 116, 144, 0.55);
  border-color: var(--bba-accent);
  color: #fff;
}
.bba-trigger:active {
  transform: scale(0.96);
}
.bba-trigger:focus-visible,
.bba-root button:focus-visible,
.bba-root a:focus-visible,
.bba-root input:focus-visible,
.bba-root textarea:focus-visible {
  outline: 2px solid var(--bba-accent);
  outline-offset: 2px;
}
.bba-trigger svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.bba-trigger.is-user {
  padding: 0 12px 0 4px;
}
.bba-trigger-label {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bba-trigger-badge {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 639px) {
  .bba-trigger {
    right: 5px;
    padding: 0;
    width: 34px;
    justify-content: center;
  }
  .bba-trigger.is-user {
    padding: 0;
  }
  .bba-trigger-label,
  .bba-trigger-badge {
    display: none;
  }
}

/* ---------- Avatar ---------- */
.bba-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0891b2, #6366f1);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  user-select: none;
}
.bba-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bba-avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.bba-avatar--lg {
  width: 96px;
  height: 96px;
  font-size: 34px;
  border: 2px solid rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
}

/* ---------- Overlay ---------- */
.bba-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 12px 24px;
  overflow-y: auto;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: bba-fade 0.18s ease-out;
}
.bba-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 22px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: linear-gradient(180deg, #0d1522 0%, var(--bba-panel) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 229, 255, 0.08);
  animation: bba-rise 0.22s ease-out;
}
.bba-dialog--wide {
  max-width: 720px;
}
.bba-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}
.bba-brand {
  font: 800 13px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.2em;
  color: #fff;
}
.bba-brand span {
  color: var(--bba-accent);
}
.bba-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--bba-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bba-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bba-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.bba-close svg {
  width: 16px;
  height: 16px;
}
.bba-body {
  padding: 16px 20px 22px;
}
.bba-title {
  margin: 0 0 6px;
  font: 800 22px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.01em;
  color: #fff;
}
.bba-sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--bba-muted);
}

/* ---------- Tabs ---------- */
.bba-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 18px;
  border-radius: 14px;
  border: 1px solid var(--bba-line);
  background: rgba(0, 0, 0, 0.3);
  overflow-x: auto;
}
.bba-tab {
  flex: 1 0 auto;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bba-muted);
  font: 600 12px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bba-tab:hover {
  color: #fff;
}
.bba-tab[aria-selected="true"] {
  background: rgba(0, 229, 255, 0.14);
  color: #a5f3fc;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35);
}

/* ---------- Formulare ---------- */
.bba-form {
  display: grid;
  gap: 14px;
}
.bba-field {
  display: grid;
  gap: 6px;
}
.bba-label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}
.bba-hint {
  font-size: 11px;
  line-height: 1.5;
  color: var(--bba-muted);
}
.bba-input,
.bba-textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: 400 14px/1.4 "Inter", system-ui, sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bba-input::placeholder,
.bba-textarea::placeholder {
  color: #64748b;
}
.bba-input:focus,
.bba-textarea:focus {
  outline: none;
  border-color: var(--bba-accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16);
}
.bba-textarea {
  min-height: 110px;
  resize: vertical;
}
.bba-pass {
  position: relative;
}
.bba-pass .bba-input {
  padding-right: 84px;
}
.bba-pass-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font: 600 11px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
}
.bba-pass-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.bba-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  cursor: pointer;
}
.bba-check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--bba-accent);
  cursor: pointer;
}
.bba-root a {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bba-root a:hover {
  color: #fff;
}

/* ---------- Buttons ---------- */
.bba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 700 13px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s, border-color 0.15s, transform 0.12s;
}
.bba-btn:active {
  transform: scale(0.98);
}
.bba-btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}
.bba-btn--primary {
  background: linear-gradient(135deg, #22d3ee, #00e5ff);
  color: #04121a;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.22);
}
.bba-btn--primary:hover {
  filter: brightness(1.08);
}
.bba-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--bba-line);
  color: #e2e8f0;
}
.bba-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.bba-btn--danger {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fda4af;
}
.bba-btn--danger:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fff;
}
.bba-btn--block {
  width: 100%;
}
.bba-btn--sm {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}
.bba-link {
  padding: 0;
  border: 0;
  background: none;
  color: #67e8f9;
  font: 600 12px/1.4 "Inter", system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.bba-link:hover {
  color: #fff;
}
.bba-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bba-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Hinweise ---------- */
.bba-notice {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
  font-size: 13px;
  line-height: 1.5;
}
.bba-notice--error {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.1);
  color: #fecdd3;
}
.bba-notice--info {
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.07);
  color: #cffafe;
}

/* ---------- Profil ---------- */
.bba-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}
.bba-profile-name {
  margin: 0;
  font: 800 20px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
  overflow-wrap: anywhere;
}
.bba-profile-mail {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--bba-muted);
  overflow-wrap: anywhere;
}
.bba-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bba-bio {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--bba-line);
  background: rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bba-bio--empty {
  color: var(--bba-muted);
  font-style: italic;
}
.bba-section {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--bba-line);
  background: rgba(0, 0, 0, 0.26);
}
.bba-section + .bba-section {
  margin-top: 14px;
}
.bba-section h3 {
  margin: 0 0 4px;
  font: 700 14px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
}
.bba-section p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--bba-muted);
}
.bba-section--danger {
  border-color: rgba(244, 63, 94, 0.3);
}

/* ---------- Schalter ---------- */
.bba-switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.bba-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: transform 0.18s, background 0.18s;
}
.bba-switch[aria-checked="true"] {
  background: rgba(0, 229, 255, 0.3);
  border-color: var(--bba-accent);
}
.bba-switch[aria-checked="true"]::after {
  transform: translateX(20px);
  background: var(--bba-accent);
}

/* ---------- Admin ---------- */
.bba-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.bba-admin-card {
  display: grid;
  gap: 6px;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: linear-gradient(160deg, rgba(88, 28, 135, 0.28), rgba(0, 0, 0, 0.3));
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.bba-admin-card:hover {
  border-color: #c084fc;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.25);
  transform: translateY(-1px);
}
.bba-admin-card strong {
  font: 700 14px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
}
.bba-admin-card span {
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}
.bba-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--bba-line);
}
.bba-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.bba-table th,
.bba-table td {
  padding: 9px 11px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bba-table th {
  font-weight: 700;
  color: var(--bba-muted);
  background: rgba(255, 255, 255, 0.03);
}
.bba-table tr:last-child td {
  border-bottom: 0;
}
.bba-yes {
  color: var(--bba-ok);
}
.bba-no {
  color: var(--bba-muted);
}

.bba-hidden {
  display: none !important;
}

@keyframes bba-fade {
  from {
    opacity: 0;
  }
}
@keyframes bba-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bba-backdrop,
  .bba-dialog {
    animation: none;
  }
  .bba-root * {
    transition: none !important;
  }
}

/* ---------- Profilseite (volle Seite mit Seitennavigation) ---------- */
.bba-backdrop--page {
  padding: 0;
  background: #060a12;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bba-dialog--page {
  max-width: 1080px;
  min-height: 100%;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.bba-dialog--page .bba-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--bba-line);
}
.bba-dialog--page .bba-body {
  padding: 22px 20px 40px;
}
.bba-dialog--page .bba-title {
  margin-bottom: 18px;
  font-size: 26px;
}
.bba-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.bba-side {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--bba-line);
  background: var(--bba-panel);
}
.bba-side-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bba-line);
}
.bba-avatar--md {
  width: 44px;
  height: 44px;
  font-size: 17px;
}
.bba-side-name {
  font: 700 14px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
  overflow-wrap: anywhere;
}
.bba-side-mail {
  font-size: 11px;
  color: var(--bba-muted);
  overflow-wrap: anywhere;
}
.bba-nav {
  display: grid;
  gap: 4px;
}
.bba-nav-item {
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #cbd5e1;
  font: 600 13px/1.2 "Inter", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bba-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.bba-nav-item[aria-current="page"] {
  background: rgba(0, 229, 255, 0.14);
  color: #a5f3fc;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35);
}
.bba-main {
  min-width: 0;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--bba-line);
  background: var(--bba-panel);
}
.bba-main-title {
  margin: 0 0 16px;
  font: 800 18px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
}
.bba-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
@media (max-width: 760px) {
  .bba-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .bba-side {
    position: static;
    padding: 12px;
  }
  .bba-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .bba-nav-item {
    flex: none;
    white-space: nowrap;
  }
  .bba-main {
    padding: 16px 14px;
  }
  .bba-dialog--page .bba-body {
    padding: 16px 12px 32px;
  }
}

/* ---------- Bestellungen ---------- */
.bba-orders {
  display: grid;
  gap: 14px;
}
.bba-order {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--bba-line);
  background: rgba(0, 0, 0, 0.28);
}
.bba-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.bba-order-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bba-muted);
}
.bba-order-id {
  margin-top: 2px;
  font: 800 17px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
}
.bba-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bba-badge {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.bba-badge--info {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.1);
  color: #a5f3fc;
}
.bba-badge--ok {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}
.bba-badge--warn {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}
.bba-badge--bad {
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
}
.bba-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.bba-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0 2px;
  text-align: center;
}
.bba-step::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.bba-step:first-child::before {
  display: none;
}
.bba-step.is-done::before,
.bba-step.is-current::before {
  background: var(--bba-accent);
}
.bba-step-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: #0b111c;
}
.bba-step.is-done .bba-step-dot {
  border-color: var(--bba-accent);
  background: var(--bba-accent);
}
.bba-step.is-current .bba-step-dot {
  border-color: var(--bba-accent);
  background: #0b111c;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.2);
}
.bba-step-label {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--bba-muted);
}
.bba-step.is-done .bba-step-label {
  color: #cbd5e1;
}
.bba-step.is-current .bba-step-label {
  color: #fff;
  font-weight: 700;
}
@media (max-width: 560px) {
  .bba-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bba-step {
    grid-template-columns: 16px 1fr;
    justify-items: start;
    align-items: center;
    gap: 10px;
    padding: 0;
    text-align: left;
  }
  .bba-step::before {
    top: auto;
    bottom: 100%;
    right: auto;
    left: 7px;
    width: 2px;
    height: 10px;
  }
  .bba-step-label {
    font-size: 12.5px;
  }
}
.bba-order-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #e2e8f0;
}
.bba-order-reason {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.08);
  font-size: 12.5px;
  line-height: 1.5;
  color: #fecdd3;
  overflow-wrap: anywhere;
}
.bba-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--bba-line);
}
.bba-detail dt {
  font-size: 11px;
  color: var(--bba-muted);
}
.bba-detail dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: #f1f5f9;
  overflow-wrap: anywhere;
}
.bba-root a.bba-btn {
  text-decoration: none;
}
.bba-root a.bba-btn--primary,
.bba-root a.bba-btn--primary:hover {
  color: #04121a;
}
.bba-root a.bba-btn--ghost {
  color: #e2e8f0;
}
.bba-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 22px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 13px;
  line-height: 1.55;
  color: var(--bba-muted);
}
.bba-empty strong {
  font: 700 15px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
}

/* Die Profilseite erscheint sofort, ohne Einblend-Animation. */
.bba-backdrop--page,
.bba-dialog--page {
  animation: none;
}

/* ---------- Statistiken (nur Admin) ---------- */
.bba-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.bba-tile {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--bba-line);
  background: rgba(0, 0, 0, 0.28);
}
.bba-tile-label {
  font-size: 11.5px;
  color: var(--bba-muted);
}
.bba-tile-value {
  margin-top: 4px;
  font: 800 26px/1.15 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.bba-tile-note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--bba-muted);
}
.bba-block-title {
  margin: 0;
  flex: 1;
  font: 700 15px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
}
.bba-segment {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid var(--bba-line);
  background: rgba(0, 0, 0, 0.3);
}
.bba-segment-item {
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bba-muted);
  font: 600 12px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
}
.bba-segment-item:hover {
  color: #fff;
}
.bba-segment-item[aria-pressed="true"] {
  background: rgba(0, 229, 255, 0.14);
  color: #a5f3fc;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35);
}
.bba-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.bba-chart {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--bba-line);
  background: rgba(0, 0, 0, 0.28);
}
.bba-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bba-chart-head h4 {
  margin: 0;
  font: 700 13px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
}
.bba-chart-readout {
  font-size: 12px;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bba-chart-plot {
  position: relative;
  height: 96px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.bba-chart-max {
  position: absolute;
  top: 2px;
  left: 0;
  font-size: 10px;
  color: var(--bba-muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.bba-bars {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.bba-bar-slot {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1px;
}
.bba-bar {
  width: 100%;
  max-width: 14px;
  border-radius: 3px 3px 0 0;
  background: #22d3ee;
}
.bba-bar-slot:hover {
  background: rgba(255, 255, 255, 0.06);
}
.bba-bar-slot:hover .bba-bar {
  background: #a5f3fc;
}
.bba-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
  color: var(--bba-muted);
  font-variant-numeric: tabular-nums;
}
.bba-rank {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bba-rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: baseline;
}
.bba-rank-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
}
.bba-rank-label {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}
.bba-rank-key {
  font-size: 11px;
  color: var(--bba-muted);
  overflow-wrap: anywhere;
}
.bba-rank-value {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.bba-rank-track {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}
.bba-rank-fill {
  height: 100%;
  border-radius: 3px;
  background: #22d3ee;
}
.bba-table-toggle {
  margin-top: 14px;
}
.bba-table-toggle summary {
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: #67e8f9;
  cursor: pointer;
}
.bba-table-toggle .bba-table-wrap {
  max-height: 320px;
  overflow: auto;
}

/* ---------- Dashboard ---------- */
.bba-dash {
  display: grid;
  gap: 18px;
}
.bba-dash-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: linear-gradient(135deg, rgba(8, 51, 68, 0.7), rgba(49, 46, 129, 0.45));
}
.bba-dash-hello {
  margin: 0;
  font: 800 22px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
  overflow-wrap: anywhere;
}
.bba-dash-sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}
.bba-dash-section {
  min-width: 0;
}
@media (max-width: 560px) {
  .bba-dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
.bba-badge--muted {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}
.bba-confirm-text {
  flex: 1 1 100%;
  font-size: 12.5px;
  line-height: 1.5;
  color: #fecdd3;
}

/* ---------- News-Feed: Beitragskarten ---------- */
.bba-feed {
  display: grid;
  gap: 16px;
}
.bba-post {
  --post-accent: #00e5ff;
  --post-ink: #f1f5f9;
  --post-muted: rgba(241, 245, 249, 0.68);
  --post-line: rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--post-line);
  background: #0b111c;
  color: var(--post-ink);
  text-align: left;
  overflow: hidden;
}
.bba-post--cyan {
  background: linear-gradient(135deg, #083344, #0e7490);
}
.bba-post--violett {
  background: linear-gradient(135deg, #2e1065, #6d28d9);
}
.bba-post--pink {
  background: linear-gradient(135deg, #500724, #be185d);
}
.bba-post--sonnenuntergang {
  background: linear-gradient(135deg, #7c2d12, #be123c 55%, #6d28d9);
}
.bba-post--gold {
  background: linear-gradient(135deg, #422006, #a16207);
}
.bba-post--smaragd {
  background: linear-gradient(135deg, #022c22, #047857);
}
.bba-post--hell {
  --post-ink: #0f172a;
  --post-muted: rgba(15, 23, 42, 0.66);
  --post-line: rgba(15, 23, 42, 0.16);
  background: #f8fafc;
}
.bba-post--glow {
  border-color: var(--post-accent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--post-accent) 35%, transparent);
}
.bba-post--center {
  text-align: center;
}
.bba-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}
.bba-post-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 12px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.14em;
  color: var(--post-ink);
}
.bba-post-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--post-accent);
}
.bba-post-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--post-muted);
}
.bba-post-flag {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--post-line);
  font-weight: 700;
  color: var(--post-ink);
}
.bba-post-title {
  margin: 0;
  font: 800 20px/1.25 "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--post-ink);
  overflow-wrap: anywhere;
}
.bba-post-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--post-ink);
  overflow-wrap: anywhere;
}
.bba-post--gross .bba-post-body {
  font-size: 17px;
}
.bba-post--gross .bba-post-title {
  font-size: 25px;
}
.bba-post-body > :first-child {
  margin-top: 0;
}
.bba-post-body > :last-child {
  margin-bottom: 0;
}
.bba-post-body p,
.bba-post-body div {
  margin: 0 0 0.6em;
}
.bba-post-body h2 {
  margin: 0.8em 0 0.4em;
  font: 800 1.35em/1.25 "Plus Jakarta Sans", system-ui, sans-serif;
}
.bba-post-body h3 {
  margin: 0.8em 0 0.4em;
  font: 700 1.12em/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
}
.bba-post-body ul,
.bba-post-body ol {
  margin: 0 0 0.6em;
  padding-left: 1.4em;
  text-align: left;
}
.bba-post-body blockquote {
  margin: 0 0 0.6em;
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--post-accent);
  color: var(--post-muted);
  font-style: italic;
  text-align: left;
}
.bba-root .bba-post-body a {
  color: var(--post-accent);
}
.bba-root .bba-post--hell .bba-post-body a {
  color: #0e7490;
}
.bba-post-images {
  display: grid;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
}
.bba-post-images--2,
.bba-post-images--3 {
  grid-template-columns: 1fr 1fr;
}
.bba-post-image {
  display: block;
  background: rgba(0, 0, 0, 0.3);
}
.bba-post-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.bba-post-images--2 img,
.bba-post-images--3 img {
  aspect-ratio: 1;
}
.bba-post-video {
  display: block;
  width: 100%;
  max-height: 560px;
  border-radius: 12px;
  background: #000;
}
.bba-post-audio {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--post-line);
  background: rgba(0, 0, 0, 0.18);
  text-align: left;
}
.bba-post-audio-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--post-muted);
}
.bba-post-audio audio {
  width: 100%;
  height: 38px;
}
.bba-post-mediahint {
  font-size: 12px;
  color: var(--post-muted);
}
.bba-post--compact .bba-post-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bba-post--compact .bba-post-title {
  font-size: 17px;
}
.bba-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--post-line);
  justify-content: flex-start;
}
.bba-reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--post-line);
  background: rgba(0, 0, 0, 0.16);
  color: var(--post-ink);
  font: 700 13px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.bba-reaction:hover {
  transform: translateY(-1px);
  border-color: var(--post-accent);
}
.bba-reaction[aria-pressed="true"] {
  border-color: var(--post-accent);
  background: color-mix(in srgb, var(--post-accent) 26%, transparent);
}
.bba-reaction-emoji {
  font-size: 17px;
  line-height: 1;
}
.bba-reaction-count {
  font-variant-numeric: tabular-nums;
}

/* ---------- Beitrags-Editor (nur Admin) ---------- */
.bba-composer {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.bba-composer-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.bba-composer-preview {
  position: sticky;
  top: 12px;
  min-width: 0;
}
@media (max-width: 900px) {
  .bba-composer {
    grid-template-columns: minmax(0, 1fr);
  }
  .bba-composer-preview {
    position: static;
  }
}
.bba-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.04);
}
.bba-tool-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.bba-tool-group:last-child {
  border-right: 0;
}
.bba-tool-caption {
  margin-right: 3px;
  font-size: 11px;
  color: var(--bba-muted);
}
.bba-tool {
  min-width: 30px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  font: 600 12px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
}
.bba-tool:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}
.bba-tool--bold {
  font-weight: 900;
}
.bba-tool--italic {
  font-style: italic;
}
.bba-tool--underline {
  text-decoration: underline;
}
.bba-tool--strike {
  text-decoration: line-through;
}
.bba-swatch {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.bba-swatch:hover {
  border-color: #fff;
  transform: scale(1.12);
}
.bba-editor {
  min-height: 180px;
  padding: 14px;
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: #f1f5f9;
  font-size: 14.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.bba-editor:focus {
  outline: none;
  border-color: var(--bba-accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16);
}
.bba-editor:empty::before {
  content: "Schreib hier deinen Beitrag …";
  color: #64748b;
}
.bba-editor h2 {
  margin: 0.6em 0 0.3em;
  font-size: 1.35em;
}
.bba-editor h3 {
  margin: 0.6em 0 0.3em;
  font-size: 1.12em;
}
.bba-editor blockquote {
  margin: 0 0 0.6em;
  padding-left: 14px;
  border-left: 3px solid var(--bba-accent);
  color: #cbd5e1;
  font-style: italic;
}
.bba-editor ul,
.bba-editor ol {
  padding-left: 1.4em;
}
.bba-themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.bba-theme {
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  font: 700 12px/1.2 "Inter", system-ui, sans-serif;
  cursor: pointer;
}
.bba-theme.bba-post--hell {
  color: #0f172a;
}
.bba-theme[aria-pressed="true"] {
  border-color: var(--bba-accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.22);
}
.bba-color {
  width: 44px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.bba-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.bba-media-item {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  border: 1px solid var(--bba-line);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bba-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bba-media-kind {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}
.bba-media-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.bba-btn.is-recording {
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(244, 63, 94, 0.18);
  color: #fecdd3;
}
.bba-post-row {
  display: grid;
  gap: 8px;
}
