/* ATRIUM SIGNAGE – EINHEITLICHES APP-DESIGN */

:root {
  color-scheme: dark;
  --signage-bg: #111827;
  --signage-surface: #1e293b;
  --signage-border: #334155;
  --signage-text: #f1f5f9;
  --signage-muted: #a7b5ca;
  --signage-accent: #a78bfa;
}

html,
body {
  background: var(--signage-bg) !important;
}

body {
  color: var(--signage-text) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  line-height: 1.55;
  min-height: 100vh;
}

body header {
  background: #172234 !important;
  border-bottom: 1px solid var(--signage-border) !important;
  color: var(--signage-text) !important;
  padding: 22px clamp(20px, 4vw, 48px) !important;
}

body header h1,
body header h2,
body main h1,
body main h2,
body main h3 {
  color: var(--signage-text) !important;
  letter-spacing: -.025em;
}

body header p,
body main .muted,
body main small {
  color: var(--signage-muted) !important;
}

body main {
  width: min(1440px, calc(100% - 40px)) !important;
  max-width: 1440px !important;
  margin: 30px auto 60px !important;
  padding: 0 !important;
}

body main .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

body main .card,
body main section {
  background: var(--signage-surface) !important;
  color: var(--signage-text) !important;
  border: 1px solid var(--signage-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

body main .card {
  padding: 22px !important;
}

body main section {
  padding: 24px !important;
  margin: 0 0 24px !important;
}

body main .card .number {
  color: var(--signage-text) !important;
  font-weight: 750 !important;
}

body main section h2 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 18px;
}

body main p,
body main label,
body main td,
body main strong {
  color: var(--signage-text) !important;
}

body main table {
  width: 100%;
  border-collapse: collapse;
}

body main th {
  color: #dce5f3 !important;
  font-weight: 700;
  text-align: left;
}

body main th,
body main td {
  border-color: var(--signage-border) !important;
  padding: 12px 14px;
}

body main tbody tr:hover {
  background: rgba(167, 139, 250, .055);
}

body main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body main select,
body main textarea {
  background: #111827 !important;
  color: var(--signage-text) !important;
  border: 1px solid var(--signage-border) !important;
  border-radius: 9px !important;
  padding: 10px 12px;
}

body main input[type="file"] {
  color: var(--signage-text);
  max-width: 100%;
}

body main button,
body header button {
  border-radius: 9px !important;
  font-family: inherit !important;
  font-weight: 650 !important;
  cursor: pointer;
}

body main button:hover:not(:disabled),
body header button:hover:not(:disabled) {
  filter: brightness(1.1);
}

body main button:disabled,
body header button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

body main .online {
  color: #4ade80 !important;
}

body main .offline,
body main .error {
  color: #fb7185 !important;
}

body main a,
body header a {
  color: var(--signage-accent);
}

body main img,
body main video {
  max-width: 100%;
}

body main .media-preview,
body main .video-preview {
  border-radius: 10px;
  overflow: hidden;
}

body main details {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--signage-border);
  border-radius: 12px;
  margin: 12px 0;
}

body main details summary {
  color: var(--signage-text) !important;
  font-weight: 650;
  cursor: pointer;
  padding: 14px;
}

body main details[open] summary {
  border-bottom: 1px solid var(--signage-border);
}

body main button:focus-visible,
body main input:focus-visible,
body main select:focus-visible,
body main a:focus-visible {
  outline: 3px solid rgba(167,139,250,.5);
  outline-offset: 2px;
}

@media (max-width: 850px) {
  body main .cards {
    grid-template-columns: 1fr;
  }

  body main {
    width: calc(100% - 24px) !important;
    margin-top: 18px !important;
  }

  body main section {
    padding: 16px !important;
    overflow-x: auto;
  }

  body main th,
  body main td {
    padding: 9px;
  }
}

/* === ATRIUM SIGNAGE – KOMPAKTE KATEGORIEN === */

body main {
  max-width: 1180px !important;
  margin-top: 22px !important;
}

body main .cards {
  gap: 12px !important;
  margin-bottom: 18px !important;
}

body main .card {
  padding: 15px 18px !important;
  box-shadow: none !important;
}

body main .card .number {
  font-size: 1.8rem !important;
}

body main details.atrium-category {
  display: block;
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 13px !important;
  margin: 0 0 12px !important;
  overflow: hidden;
  box-shadow: none;
}

body main details.atrium-category > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 15px 20px !important;
  cursor: pointer;
  user-select: none;
  color: #f1f5f9 !important;
  font-size: 1.02rem;
  font-weight: 700;
  border: 0 !important;
  margin: 0 !important;
}

body main details.atrium-category > summary::-webkit-details-marker {
  display: none;
}

body main details.atrium-category > summary:hover {
  background: #263449;
}

body main .atrium-category-name {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

body main .atrium-category-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background: rgba(167,139,250,.13);
  color: #c4b5fd;
  border-radius: 9px;
  font-size: 19px;
}

body main .atrium-category-hint {
  color: #a7b5ca;
  font-size: .82rem;
  font-weight: 500;
}

body main details.atrium-category[open]
  > summary .atrium-category-hint {
  color: #c4b5fd;
}

body main details.atrium-category[open] > summary {
  border-bottom: 1px solid #334155 !important;
}

body main .atrium-category-content {
  padding: 18px 20px 22px;
  overflow-x: auto;
}

body main .atrium-category-content > :first-child {
  margin-top: 0;
}

body main .atrium-category-content > :last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  body main details.atrium-category > summary {
    min-height: 56px;
    padding: 12px 14px !important;
  }

  body main .atrium-category-content {
    padding: 14px;
  }

  body main .atrium-category-hint {
    font-size: .75rem;
  }
}
