/* Page styles: admin and support pages. Plain CSS on top of Bootstrap and
   public/style/panel.css (tokens --z-*). Only what utility classes in the
   templates cannot express (hooks set by scripts, layouts of this page group). */

/* ---------------------------------------------------------------------------
   PRIVACY SHIELD (views/partials/privacy-blur.ejs)
   Fading in and out (.sichtbar) lives in seiten/oeffentlich.css.
   Less blur on phones: large-area backdrop-filter costs performance there.
   --------------------------------------------------------------------------- */
.datenschutz-schild {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 18, 24, .75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (max-width: 639.98px) {
  .datenschutz-schild {
    background: rgba(15, 18, 24, .9);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}
.datenschutz-tafel {
  width: 100%;
  max-width: 20rem;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem;
  text-align: center;
}
.datenschutz-symbol {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-sm);
  background: var(--z-hover);
  color: var(--z-text);
}

/* ---------------------------------------------------------------------------
   USER MANAGEMENT (public/js/admin-users.js): the own role stays readable
   but cannot be changed - no arrow, not dimmed, no interaction.
   --------------------------------------------------------------------------- */
.form-select.rolle-fest {
  background-image: none;
  background-color: var(--z-hover);
  opacity: 1;
  pointer-events: none;
  cursor: not-allowed;
}

/* Documentation info (views/admin/docs-info.ejs): the internal folder */
.docs-intern { border-left: 3px solid rgba(var(--z-danger-rgb), .6) !important; }

/* ---------------------------------------------------------------------------
   SUPPORT (views/support/*.ejs): who wrote - the team in warning tint,
   the user neutral; messages as a quiet box with a coloured left edge.
   --------------------------------------------------------------------------- */
.avatar.avatar-neutral { background: var(--z-hover); color: var(--z-text); }
.avatar.avatar-team { background: rgba(var(--z-warning-rgb), var(--z-soft-alpha)); color: var(--z-soft-warning); }
.avatar.avatar-support { background: rgba(var(--z-success-rgb), var(--z-soft-alpha)); color: var(--z-soft-success); }
.ticket-nachricht {
  padding: .75rem;
  border-left: 2px solid var(--z-accent);
  border-radius: var(--z-radius-sm);
  background: rgba(255, 255, 255, .025);
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.ticket-nachricht.ticket-nachricht-team { border-left-color: var(--z-warning); }

/* ---------------------------------------------------------------------------
   CHANGELOG MANAGEMENT (views/admin/changelog.ejs)
   Rows are separated by a border-top; the search script moves .cla-erste
   to the first VISIBLE row (:first-child is not enough once rows are hidden).
   --------------------------------------------------------------------------- */
.cla-zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border-top: 1px solid var(--z-border);
}
.cla-zeile:hover { background: rgba(255, 255, 255, .02); }
.cla-zeile.cla-erste { border-top-width: 0; }

.cla-kopf {
  display: grid;
  grid-template-columns: 1rem auto auto 1fr;
  align-items: center;
  column-gap: .75rem;
  row-gap: .25rem;
  padding: .85rem 0 .85rem 1rem;
  cursor: pointer;
  list-style: none;
}
.cla-kopf::-webkit-details-marker { display: none; }
.cla-pfeil { font-size: var(--z-fs-xs); color: var(--z-muted); transition: transform .15s ease; }
.cla-zeile details[open] .cla-pfeil { transform: rotate(90deg); }
.cla-datum { justify-self: end; }
.cla-vorschau { grid-column: 2 / -1; min-width: 0; }
.cla-zeile details[open] .cla-vorschau { display: none; }

.cla-inhalt { padding: 0 1rem 1rem; }
.cla-punkte {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 75ch;
  margin: 0;
  padding-left: 1.25rem;
  font-size: var(--z-fs-small);
  line-height: 1.65;
}

.cla-loeschen:hover { background: rgba(var(--z-danger-rgb), .15); color: var(--z-soft-danger); }

@media (min-width: 768px) {
  .cla-kopf { grid-template-columns: 1rem 8.5rem 4.6rem 6.5rem minmax(0, 1fr); }
  .cla-datum { justify-self: auto; }
  .cla-vorschau { grid-column: auto; }
  .cla-zeile details[open] .cla-vorschau { display: block; visibility: hidden; }
  .cla-inhalt { padding-left: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cla-pfeil { transition: none; }
}
