/* Console (console.html): linke Nav — Firestore-Sammlungen, rechter Bereich leer */
.mellowedit-console {
  display: flex;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #fff;
}

.mellowedit-console__aside {
  width: 15.5rem;
  flex-shrink: 0;
  border-right: 1px solid #e8e6e3;
  padding: 1.25rem 0;
  padding-bottom: 5rem;
  background: #fafaf9;
}

.mellowedit-console__aside-title {
  margin: 0 1rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.mellowedit-console__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mellowedit-console__list-item {
  margin: 0;
}

.mellowedit-console__collection-btn {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.mellowedit-console__collection-btn:hover {
  background: rgba(37, 99, 235, 0.06);
}

.mellowedit-console__collection-btn.is-active {
  border-left-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  color: #1e40af;
}

.mellowedit-console__main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  background: #fff;
  padding: 1.25rem 1.5rem;
  overflow: auto;
  box-sizing: border-box;
}

.mellowedit-console__placeholder {
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
}

.mellowedit-console__loading {
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
}

.mellowedit-console__viewer-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}

.mellowedit-console__viewer-head {
  margin-bottom: 1rem;
}

.mellowedit-console__viewer-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.mellowedit-console__viewer-head-row .mellowedit-console__viewer-title {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 12rem;
}

.mellowedit-console__new-cms-btn {
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  border: 1px solid #0f172a;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.mellowedit-console__new-cms-btn:hover {
  background: #1e293b;
}

.mellowedit-console__cms-image-block {
  margin: 0 0 0.5rem;
}

.mellowedit-console__cms-image-preview-wrap {
  margin: 0 0 0.75rem;
  overflow: hidden;
  border: 1px solid #e8e6e3;
  border-radius: 10px;
  background: #f8f8f7;
  max-height: 240px;
}

.mellowedit-console__cms-image-preview {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  vertical-align: middle;
}

.mellowedit-console__cms-image-drop {
  padding: 0.85rem 1rem;
  margin: 0 0 0.65rem;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mellowedit-console__cms-image-drop:hover,
.mellowedit-console__cms-image-drop:focus {
  outline: none;
  border-color: #94a3b8;
  background: #f1f5f9;
}

.mellowedit-console__cms-image-drop.is-dragover {
  border-color: #0f766e;
  background: #ecfdf5;
}

.mellowedit-console__cms-drop-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
}

.mellowedit-console__cms-file {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: 0.8125rem;
  color: #334155;
}

.mellowedit-console__cms-storage-pick-toggle {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
}

.mellowedit-console__cms-storage-pick-toggle:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.mellowedit-console__cms-storage-panel {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fafafa;
  max-height: min(40vh, 22rem);
  overflow: auto;
}

.mellowedit-console__cms-storage-toolbar {
  margin: 0 0 0.5rem;
}

.mellowedit-console__cms-storage-close {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
}

.mellowedit-console__cms-storage-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
}

.mellowedit-console__cms-storage-loading,
.mellowedit-console__cms-storage-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  grid-column: 1 / -1;
}

.mellowedit-console__cms-storage-img-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  margin: 0;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.mellowedit-console__cms-storage-img-btn:hover {
  border-color: #0d9488;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
}

.mellowedit-console__cms-storage-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f1f5f9;
}

.mellowedit-console__cms-storage-img-btn.is-error-thumb .mellowedit-console__cms-storage-thumb {
  display: none;
}

.mellowedit-console__cms-storage-img-caption {
  display: block;
  padding: 0.25rem 0.35rem;
  font-size: 0.65rem;
  line-height: 1.25;
  color: #475569;
  word-break: break-all;
}

.mellowedit-console__cms-image-summary {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: #0f766e;
  font-weight: 500;
}

.mellowedit-console__cms-upload-hint {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
}

.mellowedit-console__cms-page-fixed-note {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #334155;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.mellowedit-console__cms-form .mellowedit-console__modal-select {
  margin-bottom: 0.65rem;
}

.mellowedit-console__cms-form .mellowedit-console__modal-input,
.mellowedit-console__cms-form textarea.mellowedit-console__modal-input {
  margin-bottom: 0.65rem;
}

.mellowedit-console__cms-form textarea.mellowedit-console__modal-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 11rem;
  resize: vertical;
  line-height: 1.45;
}

.mellowedit-console__viewer-meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.mellowedit-console__split {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: min(60vh, 32rem);
  border: 1px solid #e8e6e3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.mellowedit-console__doclist {
  width: 13.5rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.5rem 0;
  border-right: 1px solid #e8e6e3;
  background: #fafaf9;
  overflow-y: auto;
  max-height: min(70vh, 40rem);
}

.mellowedit-console__doclist-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  text-align: left;
  cursor: pointer;
  word-break: break-all;
}

.mellowedit-console__doclist-item:hover {
  background: rgba(37, 99, 235, 0.06);
}

.mellowedit-console__doclist-item.is-active {
  border-left-color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
}

.mellowedit-console__detail {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.15rem;
  overflow: auto;
  max-height: min(70vh, 40rem);
}

.mellowedit-console__detail-idbar {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #2563eb;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e8e6e3;
  word-break: break-all;
}

.mellowedit-console__detail-actions {
  margin-bottom: 1rem;
}

.mellowedit-console__field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.mellowedit-console__field-table th {
  width: 9rem;
  max-width: 40%;
  padding: 0.45rem 0.65rem 0.45rem 0;
  vertical-align: top;
  text-align: left;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #f1f0ee;
}

.mellowedit-console__field-table td {
  padding: 0.45rem 0;
  vertical-align: top;
  border-bottom: 1px solid #f1f0ee;
  color: #1a1a1a;
}

.mellowedit-console__field-table tr:last-child th,
.mellowedit-console__field-table tr:last-child td {
  border-bottom: none;
}

.mellowedit-console__field-table--nested {
  margin: 0;
  background: #fafaf9;
  border-radius: 8px;
  border: 1px solid #e8e6e3;
}

.mellowedit-console__field-table--nested th {
  width: 6.5rem;
  padding-left: 0.5rem;
  font-size: 0.8125rem;
}

.mellowedit-console__field-table--nested td {
  padding-right: 0.5rem;
  font-size: 0.8125rem;
}

.mellowedit-console__cell-long {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  max-height: 16rem;
  overflow-y: auto;
}

.mellowedit-console__json-details {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.mellowedit-console__json-details summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 500;
  user-select: none;
}

.mellowedit-console__json-details summary:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .mellowedit-console__split {
    flex-direction: column;
    min-height: 0;
  }

  .mellowedit-console__doclist {
    width: 100%;
    max-height: 10rem;
    border-right: none;
    border-bottom: 1px solid #e8e6e3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
  }

  .mellowedit-console__doclist-item {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .mellowedit-console__detail {
    max-height: none;
  }
}

.mellowedit-console__empty {
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
}

.mellowedit-console__doc-json {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e8e6e3;
  border-radius: 8px;
  color: #1a1a1a;
}

.mellowedit-console__error {
  max-width: 36rem;
  padding: 1rem 1.15rem;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #7f1d1d;
  font-size: 0.9375rem;
}

.mellowedit-console__error strong {
  display: block;
  margin-bottom: 0.5rem;
}

.mellowedit-console__error p {
  margin: 0 0 0.5rem;
}

.mellowedit-console__error p:last-child {
  margin-bottom: 0;
}

.mellowedit-console__hint {
  font-size: 0.875rem;
  color: #991b1b;
}

.mellowedit-console__storage-viewer {
  max-width: 48rem;
}

.mellowedit-console__storage-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.875rem;
}

.mellowedit-console__crumb-btn {
  padding: 0.2rem 0.45rem;
  border: none;
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f172a;
  font: inherit;
  cursor: pointer;
}

.mellowedit-console__crumb-btn:hover {
  background: #e2e8f0;
}

.mellowedit-console__crumb-sep {
  color: #94a3b8;
  user-select: none;
}

.mellowedit-console__crumb-current {
  font-weight: 600;
  color: #0f172a;
}

.mellowedit-console__storage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e8e6e3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.mellowedit-console__storage-empty {
  padding: 1rem 1.15rem;
  color: #64748b;
  font-size: 0.9375rem;
}

.mellowedit-console__storage-row {
  border-bottom: 1px solid #f1f5f9;
}

.mellowedit-console__storage-row:last-child {
  border-bottom: none;
}

.mellowedit-console__storage-row--folder {
  padding: 0;
}

.mellowedit-console__storage-folder-btn {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  background: #fafafa;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
}

.mellowedit-console__storage-folder-btn:hover {
  background: #f1f5f9;
}

.mellowedit-console__storage-row--file {
  padding: 0.65rem 1rem;
}

.mellowedit-console__storage-file-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.mellowedit-console__storage-name {
  font-weight: 500;
  word-break: break-word;
}

.mellowedit-console__storage-meta {
  font-size: 0.8125rem;
  color: #64748b;
  white-space: nowrap;
}

.mellowedit-console__storage-path {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #94a3b8;
  word-break: break-all;
}

.mellowedit-console__storage-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #1d4ed8;
}

.mellowedit-console__storage-link:hover {
  text-decoration: underline;
}

.mellowedit-console__btn-secondary {
  padding: 0.4rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  color: #334155;
}

.mellowedit-console__btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.mellowedit-console__storage-folder-line {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.mellowedit-console__storage-folder-line .mellowedit-console__storage-folder-btn {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0;
}

.mellowedit-console__storage-row--folder {
  padding: 0;
  overflow: hidden;
}

.mellowedit-console__storage-assign-page-btn {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
  border: none;
  border-left: 1px solid #e8e6e3;
  background: #f1f5f9;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
}

.mellowedit-console__storage-assign-page-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

body.mellowedit-console-modal-open {
  overflow: hidden;
}

.mellowedit-console__modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.45);
  box-sizing: border-box;
}

/* Sonst schlägt display:flex die Browser-Standard-[hidden]-Anzeige und das Popup schließt nicht sichtbar. */
.mellowedit-console__modal-overlay[hidden] {
  display: none !important;
  pointer-events: none;
}

.mellowedit-console__modal {
  width: 100%;
  max-width: 26rem;
  max-height: min(90vh, 32rem);
  overflow: auto;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e6e3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.mellowedit-console__modal.mellowedit-console__modal--wide {
  max-width: min(46rem, 96vw);
  max-height: min(90vh, 48rem);
}

.mellowedit-console__modal-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.mellowedit-console__modal-path {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #475569;
  word-break: break-all;
}

.mellowedit-console__modal-path code {
  font-size: 0.8125rem;
  background: #f1f5f9;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.mellowedit-console__modal-path-label {
  font-weight: 500;
  margin-right: 0.25rem;
}

.mellowedit-console__modal-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
}

.mellowedit-console__modal-select,
.mellowedit-console__modal-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  background: #fff;
}

.mellowedit-console__modal-status {
  margin: 0 0 0.75rem;
  min-height: 1.25em;
  font-size: 0.8125rem;
  color: #15803d;
}

.mellowedit-console__modal-status.is-error {
  color: #b91c1c;
}

.mellowedit-console__modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.mellowedit-console__modal-btn-primary {
  padding: 0.45rem 0.95rem;
  border: none;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.mellowedit-console__modal-btn-primary:hover:not(:disabled) {
  background: #1e293b;
}

.mellowedit-console__modal-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Mellowedit: Shell unten links — Menü oben, Einstellungen-Button unten (DOM: menu, dann button) */
.mellowedit-fab-root {
  position: fixed !important;
  left: 1.25rem !important;
  bottom: 1.25rem !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  max-width: calc(100vw - 2.5rem);
}

.mellowedit-fab-root[hidden] {
  display: none !important;
}

/* Zeile: Einstellungen links, oranger Balken mit Zeitraum + Geräte + Insights (Analyse-Modus) */
.mellowedit-fab-bottom-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.mellowedit-fab-bottom-row #mellowedit-edit-fab {
  flex-shrink: 0;
}

.mellowedit-analyse-range-bar {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  box-sizing: border-box;
  background: #f2aa3c;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.mellowedit-analyse-range-bar__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

.mellowedit-analyse-range-bar__days {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex: 1;
  min-width: 0;
}

.mellowedit-analyse-range-bar__devices {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.mellowedit-analyse-range-bar__insights {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.mellowedit-analyse-range-bar__device-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.35rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}

.mellowedit-analyse-range-bar__device-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mellowedit-analyse-range-bar__device-btn.is-active {
  background: #fff;
  color: #f2aa3c;
}

.mellowedit-analyse-range-bar__device-btn.is-active:hover {
  background: #fff;
  color: #e09520;
}

.mellowedit-analyse-range-bar__device-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.mellowedit-analyse-range-bar__device-icon svg {
  display: block;
}

.mellowedit-analyse-range-bar[hidden] {
  display: none !important;
}

/* Innerhalb der orangen Leiste: Link zu anlytiks.html (ausführlichere Kennzahlen) */
.mellowedit-analyse-insights-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  box-sizing: border-box;
  background: #fff;
  color: #f2aa3c;
  border: 2px solid #f2aa3c;
  border-radius: 10px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mellowedit-analyse-insights-link:hover {
  background: #fff8f0;
  color: #e09520;
  border-color: #e09520;
}

.mellowedit-analyse-insights-link[hidden] {
  display: none !important;
}

.mellowedit-analyse-range-bar__btn {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.mellowedit-analyse-range-bar__btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mellowedit-analyse-range-bar__btn.is-active {
  background: #fff;
  color: #f2aa3c;
  box-shadow: none;
}

.mellowedit-analyse-range-bar__btn.is-active:hover {
  background: #fff;
  color: #e09520;
}

.mellowedit-fab-menu {
  display: none;
  flex-direction: column;
  min-width: 11rem;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid #e8e6e3;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.mellowedit-fab-menu.is-open {
  display: flex;
}

.mellowedit-fab-menu__item {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  margin: 0;
  border: none;
  border-bottom: 1px solid #f0eeeb;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.mellowedit-fab-menu__item:last-child {
  border-bottom: none;
}

.mellowedit-fab-menu__item:hover {
  background: #f6f5f3;
}

.mellowedit-fab-menu__item:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.mellowedit-fab-menu__item--logout {
  color: #b91c1c;
}

.mellowedit-fab-menu__item--logout:hover {
  background: #fef2f2;
}

/* FAB: „Seiten“ mit Flyout rechts (Hover / Fokus) */
.mellowedit-fab-menu__subwrap {
  position: relative;
  border-bottom: 1px solid #f0eeeb;
}

.mellowedit-fab-menu__item--seiten-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border-bottom: none;
}

.mellowedit-fab-menu__item--seiten-trigger::after,
.mellowedit-fab-menu__item--cms-trigger::after {
  content: "›";
  font-size: 1.1rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1;
}

.mellowedit-fab-menu__item--cms-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border-bottom: none;
}

.mellowedit-fab-menu__flyout-wrap {
  display: none;
  position: absolute;
  left: 100%;
  top: auto;
  bottom: 0;
  padding-left: 10px;
  margin-left: -6px;
  z-index: 25;
}

.mellowedit-fab-menu__subwrap:hover .mellowedit-fab-menu__flyout-wrap,
.mellowedit-fab-menu__subwrap:focus-within .mellowedit-fab-menu__flyout-wrap {
  display: block;
}

.mellowedit-fab-menu__flyout {
  min-width: 13rem;
  max-width: min(20rem, calc(100vw - 5rem));
  /* Unten am „Seiten“-Zeile verankert: nach oben öffnen; Höhe begrenzt + Scroll bei vielen Einträgen */
  max-height: min(22rem, calc(100vh - 5rem));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid #e8e6e3;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mellowedit-fab-menu__flyout-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.mellowedit-fab-menu__flyout-row.is-archived {
  background: #f3f4f6;
}

.mellowedit-fab-menu__flyout-row.is-archived .mellowedit-fab-menu__flyout-link {
  color: #6b7280;
}

.mellowedit-fab-menu__flyout-row + .mellowedit-fab-menu__flyout-row {
  border-top: 1px solid #f0eeeb;
}

.mellowedit-fab-menu__flyout-link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mellowedit-fab-menu__flyout-row-link {
  flex: 1;
  min-width: 0;
  padding-right: 0.35rem;
}

.mellowedit-fab-menu__flyout-edit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.mellowedit-fab-menu__flyout-edit:hover,
.mellowedit-fab-menu__flyout-edit:focus-visible {
  color: #2563eb;
  background: #f1f5f9;
  outline: none;
}

.mellowedit-fab-menu__flyout-edit:focus-visible {
  box-shadow: inset 0 0 0 2px #2563eb;
}

.mellowedit-fab-menu__flyout-archive {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.mellowedit-fab-menu__flyout-row.is-archived .mellowedit-fab-menu__flyout-archive {
  color: #4f46e5;
}

.mellowedit-fab-menu__flyout-archive:hover,
.mellowedit-fab-menu__flyout-archive:focus-visible {
  color: #2563eb;
  background: #f1f5f9;
  outline: none;
}

.mellowedit-fab-menu__flyout-archive:focus-visible {
  box-shadow: inset 0 0 0 2px #2563eb;
}

.mellowedit-fab-menu__flyout-row.is-archived .mellowedit-fab-menu__flyout-archive:hover,
.mellowedit-fab-menu__flyout-row.is-archived .mellowedit-fab-menu__flyout-archive:focus-visible {
  color: #4338ca;
  background: #ede9fe;
}

.mellowedit-fab-menu__flyout-row.is-archived .mellowedit-fab-menu__flyout-archive:focus-visible {
  box-shadow: inset 0 0 0 2px #6366f1;
}

.mellowedit-fab-menu__flyout-archive:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mellowedit-fab-menu__flyout-delete {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.mellowedit-fab-menu__flyout-delete:hover,
.mellowedit-fab-menu__flyout-delete:focus-visible {
  color: #991b1b;
  background: #fef2f2;
  outline: none;
}

.mellowedit-fab-menu__flyout-delete:focus-visible {
  box-shadow: inset 0 0 0 2px #dc2626;
}

.mellowedit-fab-menu__flyout-delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mellowedit-fab-menu__flyout-link:hover,
.mellowedit-fab-menu__flyout-link:focus-visible {
  background: #f6f5f3;
  outline: none;
}

.mellowedit-fab-menu__flyout-link:focus-visible {
  box-shadow: inset 0 0 0 2px #2563eb;
}

.mellowedit-fab-menu__flyout-empty {
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.35;
}

.mellowedit-fab-menu__flyout-empty.is-error {
  color: #b91c1c;
}

.mellowedit-fab-menu__flyout-new-wrap {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid #f0eeeb;
}

.mellowedit-fab-menu__flyout-btn-new {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.mellowedit-fab-menu__flyout-btn-new:hover {
  filter: brightness(1.05);
}

/* medien.html — Galerie aus Storage …/images */
body.mellowedit-medien-page {
  background-color: #fafaf9;
}

.mellowedit-medien-main {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 6rem;
  background-color: #fafaf9;
}

.mellowedit-medien-main.is-dragover {
  outline: 2px dashed #94a3b8;
  outline-offset: -6px;
}

/* Unten rechts, gleiche Bodenhöhe wie Einstellungen (FAB: left 1.25rem / bottom 1.25rem) */
.mellowedit-medien-search {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2147482990;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: calc(100vw - 2.5rem);
}

.mellowedit-medien-search-field-wrap {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.mellowedit-medien-search.is-open .mellowedit-medien-search-field-wrap {
  max-width: min(20rem, calc(100vw - 6rem));
  opacity: 1;
}

.mellowedit-medien-search-input {
  box-sizing: border-box;
  width: min(20rem, calc(100vw - 6rem));
  min-height: calc(0.65rem * 2 + 0.9375rem * 1.35);
  padding: 0.65rem 0.9rem;
  border: 1px solid #e8e6e3;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.mellowedit-medien-search-input::placeholder {
  color: #94a3b8;
}

.mellowedit-medien-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.mellowedit-medien-search-toggle {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: calc(0.65rem * 2 + 1.25rem);
  min-height: calc(0.65rem * 2 + 0.9375rem * 1.35);
  padding: 0.65rem;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.mellowedit-medien-search-toggle:hover {
  filter: brightness(1.06);
}

.mellowedit-medien-search-toggle:active {
  transform: scale(0.98);
}

.mellowedit-medien-search-toggle:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 3px;
}

.mellowedit-medien-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

.mellowedit-medien-status {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.mellowedit-medien-status.is-error {
  color: #b91c1c;
}

.mellowedit-medien-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.mellowedit-medien-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e8e6e3;
  border-radius: 10px;
  background: #f8f8f7;
}

.mellowedit-medien-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eee;
}

.mellowedit-medien-card figcaption {
  max-height: 2.75em;
  padding: 0.45rem 0.5rem;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #475569;
  word-break: break-word;
}

.mellowedit-medien-card.mellowedit-is-admin-cursor {
  cursor: context-menu;
}

.mellowedit-medien-context {
  position: fixed;
  z-index: 2147482998;
  min-width: 11rem;
  padding: 0.35rem 0;
  border: 1px solid #e8e6e3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14), 0 2px 10px rgba(0, 0, 0, 0.06);
}

.mellowedit-medien-context-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  color: #1a1a1a;
  cursor: pointer;
}

.mellowedit-medien-context-item:hover,
.mellowedit-medien-context-item:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.mellowedit-medien-context-item--danger {
  color: #b91c1c;
}

.mellowedit-medien-context-item--danger:hover,
.mellowedit-medien-context-item--danger:focus-visible {
  background: #fef2f2;
}

#mellowedit-edit-fab.mellowedit-edit-fab {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  float: none !important;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.mellowedit-edit-fab:hover {
  filter: brightness(1.06);
}

.mellowedit-edit-fab:active {
  transform: scale(0.98);
}

.mellowedit-edit-fab:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 3px;
}

/* Inline-Text bearbeiten (nur wenn body.mellowedit-signed-in) */
.mellowedit-editable-host {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  border-radius: 6px;
  transition: box-shadow 0.15s ease;
}

body.mellowedit-signed-in .mellowedit-editable-host:hover,
body.mellowedit-signed-in .mellowedit-editable-host:focus-within,
body.mellowedit-signed-in .mellowedit-editable-host--editing {
  box-shadow: 0 0 0 2px #2563eb;
}

/* Formular-Checkbox-Kacheln: Text liegt per CSS absolut über der grünen Fläche.
   Der Edit-Host darf kein zweites Flex-Item sein (sonst leere Kästen neben dem Text). */
label.checkbox-field {
  position: relative;
}

label.checkbox-field > .mellowedit-editable-host--checkbox-cell {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none;
  margin: 0;
  z-index: 2;
  box-shadow: none;
}

body.mellowedit-signed-in label.checkbox-field > .mellowedit-editable-host--checkbox-cell:hover,
body.mellowedit-signed-in label.checkbox-field > .mellowedit-editable-host--checkbox-cell:focus-within,
body.mellowedit-signed-in label.checkbox-field > .mellowedit-editable-host--checkbox-cell.mellowedit-editable-host--editing {
  box-shadow: 0 0 0 2px #2563eb;
}

/* Ursprünglich .checkbox-label { position: absolute } — im Edit-Host wieder ins Flex-Zentrum nehmen */
label.checkbox-field > .mellowedit-editable-host--checkbox-cell .mellowedit-editable-target {
  position: relative;
}

/* Datenschutz-Zeile: normale Flex-Zeile, Host nur so breit wie der Text */
label.checkbox-field-2 > .mellowedit-editable-host--checkbox-row {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  align-items: flex-start;
  vertical-align: top;
}

.mellowedit-editable-toolbar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  transform: translate(18%, -25%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

body.mellowedit-signed-in .mellowedit-editable-host:hover .mellowedit-editable-toolbar,
body.mellowedit-signed-in .mellowedit-editable-host:focus-within .mellowedit-editable-toolbar,
body.mellowedit-signed-in .mellowedit-editable-host--editing .mellowedit-editable-toolbar {
  opacity: 1;
  pointer-events: auto;
}

.mellowedit-color-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.mellowedit-color-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #f59e0b 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.mellowedit-color-trigger:hover {
  filter: brightness(1.08);
}

.mellowedit-color-trigger:focus-visible {
  outline: 2px solid #5b21b6;
  outline-offset: 2px;
}

.mellowedit-pencil-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.mellowedit-pencil-btn:hover {
  filter: brightness(1.08);
}

.mellowedit-pencil-btn:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

.mellowedit-editable-target[contenteditable="true"] {
  outline: none;
  border: none;
  box-shadow: none;
  cursor: text;
}

.mellowedit-editable-target[contenteditable="true"]:focus,
.mellowedit-editable-target[contenteditable="true"]:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}

/* Mini-Toolbar bei Textauswahl (Fett / Kursiv) — gleiches Blau wie Einstellungen/Stift */
.mellowedit-selection-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5), 0 2px 12px rgba(37, 99, 235, 0.35);
}

.mellowedit-selection-toolbar[hidden] {
  display: none !important;
}

.mellowedit-se-toolbar-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.mellowedit-se-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mellowedit-se-toolbar-btn.is-active {
  background: #fff;
  color: #1d4ed8;
}

.mellowedit-se-toolbar-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 1px;
}

.mellowedit-se-toolbar-btn.is-active:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

/* CTA: Buttons/Links mit w-button — Hover-Rahmen + Link/Stift (nur angemeldet) */
.mellowedit-cta-host {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  border-radius: 6px;
  transition: box-shadow 0.15s ease;
}

body.mellowedit-signed-in .mellowedit-cta-host:hover,
body.mellowedit-signed-in .mellowedit-cta-host:focus-within,
body.mellowedit-signed-in .mellowedit-cta-host--editing {
  box-shadow: 0 0 0 2px #2563eb;
}

.mellowedit-cta-toolbar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  transform: translate(20%, -35%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

body.mellowedit-signed-in .mellowedit-cta-host:hover .mellowedit-cta-toolbar,
body.mellowedit-signed-in .mellowedit-cta-host:focus-within .mellowedit-cta-toolbar,
body.mellowedit-signed-in .mellowedit-cta-host--editing .mellowedit-cta-toolbar {
  opacity: 1;
  pointer-events: auto;
}

.mellowedit-cta-linkbtn,
.mellowedit-cta-pencil {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
  transition: filter 0.15s ease;
}

.mellowedit-cta-linkbtn {
  background: #1d4ed8;
}

.mellowedit-cta-pencil {
  background: #2563eb;
}

.mellowedit-cta-linkbtn:hover,
.mellowedit-cta-pencil:hover {
  filter: brightness(1.08);
}

.mellowedit-cta-linkbtn:focus-visible,
.mellowedit-cta-pencil:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

.mellowedit-cta-host a.w-button[contenteditable="true"] {
  cursor: text;
  outline: none;
  box-shadow: none;
}

/* Popup: Link-URL bearbeiten */
.mellowedit-cta-link-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  background: rgba(0, 0, 0, 0.35);
}

.mellowedit-cta-link-overlay[hidden] {
  display: none !important;
}

.mellowedit-cta-link-pop {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147483641;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.mellowedit-cta-link-pop[hidden] {
  display: none !important;
}

.mellowedit-cta-link-pop-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.mellowedit-cta-link-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  border: 1px solid #e8e6e3;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.mellowedit-cta-link-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.mellowedit-cta-link-pop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.mellowedit-cta-link-cancel,
.mellowedit-cta-link-save {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.mellowedit-cta-link-cancel {
  background: #f0eeeb;
  color: #1a1a1a;
}

.mellowedit-cta-link-save {
  background: #2563eb;
  color: #fff;
}

/* Formularfelder: Platzhalter per Stift-Dialog (nur angemeldet) */
.mellowedit-placeholder-host {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  transition: box-shadow 0.15s ease;
}

body.mellowedit-signed-in .mellowedit-placeholder-host:hover,
body.mellowedit-signed-in .mellowedit-placeholder-host:focus-within {
  box-shadow: 0 0 0 2px #2563eb;
}

.mellowedit-ph-toolbar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  transform: translate(18%, -25%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

body.mellowedit-signed-in .mellowedit-placeholder-host:hover .mellowedit-ph-toolbar,
body.mellowedit-signed-in .mellowedit-placeholder-host:focus-within .mellowedit-ph-toolbar {
  opacity: 1;
  pointer-events: auto;
}

.mellowedit-ph-editbtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.mellowedit-ph-editbtn:hover {
  filter: brightness(1.08);
}

.mellowedit-ph-editbtn:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

/* Bilder: Hover-Rahmen + Tausch-Button (nur angemeldet) */
.mellowedit-img-host {
  position: relative;
  display: block;
  max-width: 100%;
  border-radius: 4px;
  transition: box-shadow 0.15s ease;
}

.mellowedit-img-host > img {
  display: block;
  max-width: 100%;
  height: auto;
}

body.mellowedit-signed-in .mellowedit-img-host:hover,
body.mellowedit-signed-in .mellowedit-img-host:focus-within {
  box-shadow: 0 0 0 2px #2563eb;
}

body.mellowedit-signed-in .mellowedit-img-host.mellowedit-img-host--dragover {
  box-shadow: 0 0 0 3px #0d9488;
}

.mellowedit-img-toolbar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  transform: translate(18%, -25%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

body.mellowedit-signed-in .mellowedit-img-host:hover .mellowedit-img-toolbar,
body.mellowedit-signed-in .mellowedit-img-host:focus-within .mellowedit-img-toolbar {
  opacity: 1;
  pointer-events: auto;
}

.mellowedit-img-file {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.mellowedit-img-storagebtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.45);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.mellowedit-img-storagebtn:hover {
  filter: brightness(1.08);
}

.mellowedit-img-storagebtn:focus-visible {
  outline: 2px solid #115e59;
  outline-offset: 2px;
}

.mellowedit-img-swapbtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.mellowedit-img-swapbtn:hover {
  filter: brightness(1.08);
}

.mellowedit-img-swapbtn:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

body.mellowedit-img-storage-picker-open {
  overflow: hidden;
}

.mellowedit-img-storage-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483638;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
}

.mellowedit-img-storage-overlay[hidden] {
  display: none !important;
}

.mellowedit-img-storage-dialog {
  width: min(44rem, calc(100vw - 1.5rem));
  max-height: min(78vh, 36rem);
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid #e2e8f0;
  isolation: isolate;
}

.mellowedit-img-storage-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.mellowedit-img-storage-status {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
  min-height: 1.25em;
}

.mellowedit-img-storage-status.is-error {
  color: #b91c1c;
}

/* Scroll-Container; Raster = .mellowedit-console__cms-storage-pick-grid (wie CMS-Dialog) */
.mellowedit-img-storage-grid {
  flex: 1;
  min-height: 12rem;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 0.85rem;
  padding: 0.15rem 0.1rem 0.35rem;
  -webkit-overflow-scrolling: touch;
}

/*
 * Quadrat erzwingen: In diesem Dialog kollabiert img+aspect-ratio in der Flex-Spalte des Buttons
 * oft auf Höhe ~0 (Webflow img + Grid). padding-bottom-Trick + absolutes Bild wie in Lightbox-Patterns.
 */
.mellowedit-img-storage-dialog .mellowedit-img-storage-thumb-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  background: #e8eef4;
  flex-shrink: 0;
}

.mellowedit-img-storage-dialog .mellowedit-img-storage-thumb-frame .mellowedit-console__cms-storage-thumb {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
  aspect-ratio: unset !important;
  vertical-align: top !important;
}

.mellowedit-img-storage-dialog .mellowedit-console__cms-storage-img-btn.is-error-thumb .mellowedit-img-storage-thumb-frame {
  min-height: 3.5rem;
  padding-bottom: 0;
  height: 3.5rem;
  background: #fef2f2;
}

.mellowedit-img-storage-actions {
  display: flex;
  justify-content: flex-end;
}

.mellowedit-img-storage-cancel {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
}

.mellowedit-img-storage-cancel:hover {
  background: #f1f5f9;
}

@media (hover: none) {
  body.mellowedit-signed-in .mellowedit-editable-host .mellowedit-editable-toolbar {
    opacity: 0.85;
    pointer-events: auto;
  }

  body.mellowedit-signed-in .mellowedit-cta-host .mellowedit-cta-toolbar {
    opacity: 0.85;
    pointer-events: auto;
  }

  body.mellowedit-signed-in .mellowedit-img-host .mellowedit-img-toolbar {
    opacity: 0.85;
    pointer-events: auto;
  }

  body.mellowedit-signed-in .mellowedit-placeholder-host .mellowedit-ph-toolbar {
    opacity: 0.85;
    pointer-events: auto;
  }

  body.mellowedit-signed-in label.checkbox-field > .mellowedit-editable-host--checkbox-cell .mellowedit-editable-toolbar {
    opacity: 0.85;
    pointer-events: auto;
  }
}

/* --- Live-Analyse (FAB „Analyse“): blauer Rahmen + Klick-Badge, Bearbeiten aus --- */
body.mellowedit-analyse-mode .mellowedit-editable-toolbar,
body.mellowedit-analyse-mode .mellowedit-pencil-btn,
body.mellowedit-analyse-mode .mellowedit-cta-toolbar,
body.mellowedit-analyse-mode .mellowedit-img-toolbar,
body.mellowedit-analyse-mode .mellowedit-ph-toolbar,
body.mellowedit-analyse-mode #mellowedit-selection-toolbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.mellowedit-analyse-mode .mellowedit-editable-target {
  pointer-events: none !important;
}

body.mellowedit-analyse-mode .mellowedit-cta-host a.w-button {
  pointer-events: auto !important;
}

body.mellowedit-analyse-mode .mellowedit-placeholder-host input.w-input,
body.mellowedit-analyse-mode .mellowedit-placeholder-host textarea.w-input {
  pointer-events: none !important;
}

body.mellowedit-analyse-mode .mellowedit-track-analyse-target {
  position: relative;
  z-index: 2;
  outline: 2px solid #f2aa3c;
  outline-offset: 2px;
  border-radius: 4px;
}

body.mellowedit-analyse-mode .mellowedit-track-analyse-badge {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  min-width: 1.35rem;
  height: 1.25rem;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #f2aa3c;
  color: #2b2419;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 3;
}

/* --- analyse.html: Button-Klicks pro Tag --- */
.mellowedit-analyse {
  box-sizing: border-box;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
  min-height: 100vh;
  background: #f6f4ef;
}

.mellowedit-analyse__header {
  margin-bottom: 1.25rem;
}

.mellowedit-analyse__header h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.mellowedit-analyse__page-hint {
  margin: 0 0 0.85rem;
  max-width: 40rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #5c574d;
}

.mellowedit-analyse__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.mellowedit-analyse__range {
  display: inline-flex;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #c8c2b6;
  background: #fff;
}

.mellowedit-analyse__range button {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
  border: none;
  background: #fff;
  color: #333;
  cursor: pointer;
  border-right: 1px solid #c8c2b6;
}

.mellowedit-analyse__range button:last-child {
  border-right: none;
}

.mellowedit-analyse__range button:hover {
  background: #f0ebe3;
}

.mellowedit-analyse__range button.is-active {
  background: #2c3e32;
  color: #fff;
}

.mellowedit-analyse__status {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fff8e6;
  border: 1px solid #e8d9a8;
  color: #4a3d1a;
}

.mellowedit-analyse__status.is-error {
  background: #fef2f2;
  border-color: #f5c2c2;
  color: #7f1d1d;
}

.mellowedit-analyse__chart-wrap {
  position: relative;
  height: min(22rem, 55vh);
  min-height: 16rem;
  padding: 1rem 0.5rem;
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid #ddd8ce;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mellowedit-analyse__summary {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #555;
}

/* --- anlytiks.html: 3-Spalten-Grid, helles Layout (Weiß / #F5F5F7) --- */
.mellowedit-anlytiks-body {
  background: #f5f5f7;
  color: #1d1d1f;
}

.mellowedit-anlytiks-page {
  box-sizing: border-box;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0.4rem 1rem 6rem;
  min-height: 100vh;
}

.mellowedit-anlytiks-brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
  padding-top: 0.25rem;
}

.mellowedit-anlytiks-brand__img {
  display: block;
  height: auto;
  max-height: 2.75rem;
  width: auto;
  max-width: min(100%, 16rem);
  object-fit: contain;
}

/* Zwei Felder nebeneinander: Gesamtübersicht ca. 2/3, Browser ca. 1/3 der Breite */
.mellowedit-anlytiks-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 1023px) {
  .mellowedit-anlytiks-grid {
    grid-template-columns: 1fr;
  }
}

.mellowedit-anlytiks-top-section {
  margin-top: 1rem;
  width: 100%;
}

.mellowedit-anlytiks-top-section__head {
  margin-bottom: 0.75rem;
}

.mellowedit-anlytiks-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

@media (max-width: 1023px) {
  .mellowedit-anlytiks-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .mellowedit-anlytiks-three {
    grid-template-columns: 1fr;
  }
}

/* Unter „Top-Seiten“: zwei Karten (Geräte + Besucherentwicklung) */
.mellowedit-anlytiks-extra {
  width: 100%;
  margin-top: 1rem;
}

.mellowedit-anlytiks-extra__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 1023px) {
  .mellowedit-anlytiks-extra__grid {
    grid-template-columns: 1fr;
  }
}

.mellowedit-anlytiks-card--device,
.mellowedit-anlytiks-card--period-compare {
  min-height: 14rem;
}

.mellowedit-anlytiks-card--period-compare {
  display: flex;
  flex-direction: column;
}

.mellowedit-anlytiks-compare__head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.mellowedit-anlytiks-compare__sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6e6e73;
  max-width: 12rem;
  line-height: 1.35;
  text-align: right;
}

.mellowedit-anlytiks-compare {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 8rem;
}

.mellowedit-anlytiks-compare__value {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.mellowedit-anlytiks-compare__value--up {
  color: #2d6a3e;
}

.mellowedit-anlytiks-compare__value--down {
  color: #c53030;
}

.mellowedit-anlytiks-compare__value--neutral {
  color: #1d1d1f;
}

.mellowedit-anlytiks-compare__detail {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6e6e73;
}

.mellowedit-anlytiks-compare__empty {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #aeaeb2;
}

.mellowedit-anlytiks-device__head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.mellowedit-anlytiks-device__sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6e6e73;
  white-space: nowrap;
}

.mellowedit-anlytiks-device__chart-wrap {
  position: relative;
  height: 200px;
  max-width: 280px;
  margin: 0 auto;
}

.mellowedit-anlytiks-device__empty {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #6e6e73;
  text-align: center;
}

.mellowedit-anlytiks-device__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-top: 1rem;
  width: 100%;
}

.mellowedit-anlytiks-device__legend-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.mellowedit-anlytiks-device__legend-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.mellowedit-anlytiks-device__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mellowedit-anlytiks-device__label {
  font-size: 0.8125rem;
  color: #424245;
}

.mellowedit-anlytiks-device__pct {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.mellowedit-anlytiks-card {
  box-sizing: border-box;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.125rem 1.125rem 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  min-height: 12rem;
}

.mellowedit-anlytiks-card.mellowedit-anlytiks-card--tile {
  min-height: 7rem;
}

.mellowedit-anlytiks-card.mellowedit-anlytiks-card--tile.mellowedit-anlytiks-top-card {
  min-height: 0;
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.mellowedit-anlytiks-top-card__inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  min-height: 5.5rem;
  min-width: 0;
}

/* Text nur so breit wie nötig; Sparkline füllt den restlichen Kartenbereich. */
.mellowedit-anlytiks-top-card__main {
  flex: 0 1 auto;
  max-width: 46%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  justify-content: center;
}

.mellowedit-anlytiks-top-card__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.mellowedit-anlytiks-top-card__icon-svg {
  flex-shrink: 0;
  color: #86868b;
}

.mellowedit-anlytiks-top-card__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mellowedit-anlytiks-top-card__value {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.mellowedit-anlytiks-top-card__pct {
  font-size: 0.6875rem;
  color: #6e6e73;
}

.mellowedit-anlytiks-top-card__prevline {
  font-size: 0.625rem;
  color: #86868b;
  margin-top: 0.1rem;
}

.mellowedit-anlytiks-top-card__spark {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  position: relative;
  align-self: stretch;
}

.mellowedit-anlytiks-top-card__spark canvas {
  display: block;
}

.mellowedit-anlytiks-top-card--empty .mellowedit-anlytiks-top-card__inner--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.5rem;
  width: 100%;
}

.mellowedit-anlytiks-top-card__empty-hint {
  font-size: 1.25rem;
  font-weight: 600;
  color: #d1d1d6;
}

.mellowedit-anlytiks-top-card__empty-sub {
  font-size: 0.6875rem;
  color: #aeaeb2;
  text-align: center;
  line-height: 1.35;
  padding: 0 0.25rem;
}

.mellowedit-anlytiks-card--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.08);
  border-style: dashed;
}

.mellowedit-anlytiks-card__placeholder {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #aeaeb2;
}

.mellowedit-anlytiks-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.mellowedit-anlytiks-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.mellowedit-anlytiks-card__sub {
  margin: 0;
  max-width: 28rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #6e6e73;
}

.mellowedit-anlytiks-code {
  font-size: 0.7rem;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #f5f5f7;
  color: #424245;
}

.mellowedit-anlytiks-range {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-radius: 8px;
  padding: 2px;
  background: #f5f5f7;
}

.mellowedit-anlytiks-range__btn {
  margin: 0;
  padding: 0.35rem 0.6rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6e6e73;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mellowedit-anlytiks-range__btn:hover {
  color: #1d1d1f;
}

.mellowedit-anlytiks-range__btn.is-active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mellowedit-anlytiks-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem 2rem;
  margin-bottom: 0.75rem;
}

.mellowedit-anlytiks-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mellowedit-anlytiks-metric__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #86868b;
}

.mellowedit-anlytiks-metric__value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
}

.mellowedit-anlytiks-metric--primary .mellowedit-anlytiks-metric__value {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-color: #1d1d1f;
}

.mellowedit-anlytiks-overview-status {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  background: rgba(242, 170, 60, 0.12);
  border: 1px solid rgba(242, 170, 60, 0.35);
  color: #6b4a12;
}

.mellowedit-anlytiks-overview-status.is-error {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.25);
  color: #991b1b;
}

.mellowedit-anlytiks-chart-wrap {
  position: relative;
  height: min(17rem, 42vh);
  min-height: 13rem;
  margin-top: 0.25rem;
}

.mellowedit-anlytiks-chart-wrap canvas {
  display: block;
}

.mellowedit-anlytiks-card--browsers {
  display: flex;
  flex-direction: column;
  min-height: 14rem;
}

.mellowedit-anlytiks-browsers {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
  flex: 1;
  min-height: 0;
}

.mellowedit-anlytiks-browsers-empty {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #86868b;
}

.mellowedit-anlytiks-browser-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0 0.75rem;
  width: 100%;
  min-width: 0;
}

.mellowedit-anlytiks-browser-row__label {
  flex: 0 0 auto;
  min-width: 5.25rem;
  max-width: 42%;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mellowedit-anlytiks-browser-row__track {
  flex: 1 1 auto;
  min-width: 0;
  height: 6px;
  border-radius: 999px;
  background: #e8e8ed;
  overflow: hidden;
}

.mellowedit-anlytiks-browser-row__fill {
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  background: #f2aa3c;
  transition: width 0.35s ease;
}

.mellowedit-anlytiks-browser-row__value {
  flex: 0 0 auto;
  min-width: 2rem;
  text-align: right;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #1d1d1f;
}

/* Analytics: Startseite Herkunft (Karte + Städte-Balken) */
.mellowedit-anlytiks-geo-section {
  width: 100%;
  margin-top: 1.25rem;
}

.mellowedit-anlytiks-card--geo-wide {
  min-height: 0;
  width: 100%;
}

.mellowedit-anlytiks-geo-wide__head {
  margin-bottom: 0.75rem;
}

.mellowedit-anlytiks-geo-wide__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6e6e73;
}

.mellowedit-anlytiks-geo-wide__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 22rem);
  gap: 1.25rem;
  align-items: stretch;
  min-height: 26rem;
}

.mellowedit-anlytiks-geo__map {
  position: relative;
  min-height: 26rem;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #e8e8ed;
  z-index: 0;
}

.mellowedit-anlytiks-geo__map .leaflet-container {
  height: 100%;
  min-height: 26rem;
  font-family: inherit;
}

.mellowedit-anlytiks-geo__map--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mellowedit-anlytiks-geo__map-placeholder {
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6e6e73;
  max-width: 24rem;
  line-height: 1.45;
}

.mellowedit-anlytiks-geo-wide__legend {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.mellowedit-anlytiks-geo-wide__legend-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #86868b;
}

.mellowedit-anlytiks-browsers--geo {
  flex: 1;
  overflow: auto;
  max-height: min(26rem, 70vh);
  padding-right: 0.25rem;
}

@media screen and (max-width: 1023px) {
  .mellowedit-anlytiks-geo-wide__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mellowedit-anlytiks-geo__map {
    min-height: 20rem;
  }

  .mellowedit-anlytiks-geo__map .leaflet-container {
    min-height: 20rem;
  }

  .mellowedit-anlytiks-browsers--geo {
    max-height: none;
  }
}

/* Cookie-/Einwilligungs-Banner (DSGVO Tracking) — Text nur in js/mellowedit-cookie-consent.js, nicht per Mellowedit editierbar */
.mellowedit-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483647;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
  pointer-events: none;
}

.mellowedit-cookie-banner[hidden] {
  display: none !important;
}

.mellowedit-cookie-banner__inner {
  pointer-events: auto;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mellowedit-cookie-banner__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.mellowedit-cookie-banner__text {
  flex: 1 1 18rem;
  min-width: 0;
}

.mellowedit-cookie-banner__text p {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #3a3a3c;
}

.mellowedit-cookie-banner__legal {
  margin-bottom: 0 !important;
  font-size: 0.75rem !important;
  color: #6e6e73 !important;
}

.mellowedit-cookie-banner__legal a {
  color: #c4780a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mellowedit-cookie-banner__legal a:hover {
  color: #a06208;
}

.mellowedit-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mellowedit-cookie-banner__btn {
  cursor: pointer;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mellowedit-cookie-banner__btn--primary {
  background: #f2aa3c;
  color: #1d1d1f;
}

.mellowedit-cookie-banner__btn--primary:hover {
  background: #ffc35d;
}

.mellowedit-cookie-banner__btn--secondary {
  background: #ffffff;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.22);
}

.mellowedit-cookie-banner__btn--secondary:hover {
  background: #f5f5f7;
}

.mellowedit-consent-manage-host {
  margin-top: 1rem;
}

.mellowedit-consent-manage__box {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mellowedit-consent-manage__status {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1d1d1f;
}

.mellowedit-consent-manage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mellowedit-consent-manage__btn {
  cursor: pointer;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.mellowedit-consent-manage__btn--primary {
  background: #f2aa3c;
  color: #1d1d1f;
}

.mellowedit-consent-manage__btn--primary:hover {
  background: #e09520;
}

.mellowedit-consent-manage__btn--outline {
  background: transparent;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.mellowedit-consent-manage__btn--outline:hover {
  background: rgba(0, 0, 0, 0.06);
}