/* SYSTEMCOM OPERA CONCERT – Application Portal. Umsetzung der Designreferenz (Master Package 02_Designreferenzen/CONCERT.png)
   im gemeinsamen OPERA-Designsystem: Dark Mode, Sidebar mit allen 13 Apps in Organigramm-Reihenfolge, Produktfarbe CONCERT
   violett, Kacheln mit Symbol, Name, englischem Untertitel und Status. Original-Logo V3 unverändert (Schwarzpunkt wie OPENING).
   Nur echte Daten: keine Zähler, Neuigkeiten oder Unterlagen ohne Quelle (Designsystem: „Keine Beispieldaten im Betrieb“). */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #000; --side: #000; --panel: rgba(13, 16, 24, 0.92); --line: rgba(148, 163, 184, 0.24); --line-strong: rgba(148, 163, 184, 0.4);
  --text: #f8fafc; --muted: #cbd5e1; --dim: #94a3b8; --violet: #7c3aed; --violet-2: #a78bfa; --focus: #c4b5fd;
  --ok: #22c55e; --ok-bg: rgba(34, 197, 94, 0.16); --dev: #fbbf24; --dev-bg: rgba(251, 191, 36, 0.14); --no: #cbd5e1; --no-bg: rgba(148, 163, 184, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.4; min-height: 100vh; }
a { color: inherit; }
h1, h2, p { margin: 0; }
.cc-filter { position: absolute; width: 0; height: 0; overflow: hidden; }
.cc-skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.cc-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.cc-app { display: grid; grid-template-columns: 288px minmax(0, 1fr); min-height: 100vh; }

/* Sidebar */
.cc-side { background: var(--side); border-right: 1px solid var(--line); padding: 8px 14px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.cc-brand { display: flex; justify-content: center; margin: 0 -6px 8px; }
.cc-logo { width: 100%; max-width: 260px; height: auto; filter: url(#opera-schwarzpunkt);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6.6%, #000 93.4%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 8.2%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 6.6%, #000 93.4%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 8.2%, #000 85%, transparent 100%); mask-composite: intersect; }
.cc-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cc-nav-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
a.cc-nav-item:hover { background: rgba(255, 255, 255, 0.05); }
.cc-nav-item.cc-active { background: linear-gradient(90deg, rgba(124, 58, 237, 0.55), rgba(124, 58, 237, 0.25)); border-color: rgba(167, 139, 250, 0.6); }
.cc-nav-item .cc-ico { width: 36px; height: 36px; border-radius: 10px; }
.cc-nav-txt { display: grid; min-width: 0; flex: 1; }
.cc-nav-txt b { font-size: 15px; letter-spacing: 0.01em; }
.cc-nav-txt small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-nav-state { font-size: 11px; color: var(--dim); white-space: nowrap; }
.cc-nav-dev .cc-ico, .cc-nav-no .cc-ico { opacity: 0.7; }

/* Symbole in Produktfarbe */
.cc-ico { --c: #64748b; flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 78%, #fff 22%) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000 30%) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 14px rgba(0, 0, 0, 0.45); }
.cc-ico svg { width: 62%; height: 62%; }
.cc-ico-lg { width: 60px; height: 60px; border-radius: 16px; }

/* Kopf */
.cc-body { min-width: 0; display: flex; flex-direction: column; }
.cc-top { display: flex; align-items: center; gap: 24px; padding: 18px 28px 12px; flex-wrap: wrap; }
.cc-title { display: flex; align-items: center; gap: 16px; }
.cc-title h1 { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: 0.01em; }
.cc-title p { font-size: 19px; color: var(--muted); }
.cc-claim { font-size: 18px; color: var(--muted); padding-left: 24px; border-left: 2px solid var(--violet); }
.cc-user { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-user[hidden] { display: none; }
.cc-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #1c1300;
  background: radial-gradient(circle at 30% 30%, #fde68a, #d4a017 70%); }
.cc-name { color: var(--muted); font-size: 15px; }
.cc-btn { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.7); background: transparent; color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.cc-btn:hover { background: rgba(255, 255, 255, 0.07); }
/* Primär violett: Weiß auf #6d28d9 ≈ 7,1:1, auf #5b21b6 ≈ 8,6:1 */
.cc-btn-primary { border-color: var(--violet-2); background: linear-gradient(180deg, #6d28d9, #5b21b6); }
.cc-btn-primary:hover { background: linear-gradient(180deg, #5b21b6, #4c1d95); }

main { padding: 8px 28px 24px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 320px; align-content: start; }
main:focus { outline: none; }
.cc-banner, .cc-status, .cc-panel:not(.cc-access) { grid-column: 1 / -1; }
.cc-banner { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-radius: 16px; border: 1px solid rgba(167, 139, 250, 0.7);
  background: linear-gradient(100deg, rgba(76, 29, 149, 0.85) 0%, rgba(49, 18, 104, 0.85) 55%, rgba(91, 33, 182, 0.55) 100%); }
.cc-banner-ico { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--violet-2); display: grid; place-items: center; color: #ede9fe; flex: none; }
.cc-banner h2 { font-size: 24px; font-weight: 700; }
.cc-banner p { color: #e9e5ff; margin-top: 4px; }
.cc-status { color: var(--muted); }
.cc-status[hidden] { display: none; }
.cc-status.cc-err { color: #fecaca; }

.cc-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 20px; }
.cc-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.cc-panel-head h2 { font-size: 21px; }
.cc-panel-head p { color: var(--muted); font-size: 15px; }
.cc-legend { margin-left: auto !important; display: flex; gap: 8px; flex-wrap: wrap; }

.cc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.cc-tile { display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px; height: 100%; min-height: 176px; padding: 14px 14px 12px; border-radius: 14px;
  background: rgba(8, 10, 16, 0.9); border: 1px solid var(--line-strong); text-decoration: none; color: var(--text); }
.cc-tile .cc-ico { margin-bottom: 8px; }
a.cc-tile { transition: border-color 0.15s, transform 0.15s; }
a.cc-tile:hover { border-color: var(--violet-2); transform: translateY(-1px); }
.cc-tile.cc-current { border-color: rgba(167, 139, 250, 0.8); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35); }
.cc-tile.cc-dev .cc-ico, .cc-tile.cc-no .cc-ico { opacity: 0.75; }
.cc-tile-name { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; }
.cc-tile-sub { font-size: 14px; color: var(--muted); }
.cc-tag { justify-self: start; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.cc-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cc-tag.cc-ok { color: #86efac; background: var(--ok-bg); }
.cc-tag.cc-dev { color: #fde68a; background: var(--dev-bg); }
.cc-tag.cc-no { color: var(--no); background: var(--no-bg); }
.cc-legend .cc-tag { margin-top: 0; }

.cc-access { grid-column: 2; grid-row: 3 / span 1; }
.cc-access h2 { font-size: 19px; margin-bottom: 10px; }
.cc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cc-facts li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.cc-facts span { color: var(--dim); font-size: 13.5px; }
.cc-facts strong { font-size: 15.5px; overflow-wrap: anywhere; }
.cc-note { color: var(--muted); font-size: 14px; margin-top: 12px !important; }
.cc-foot { margin-top: auto; padding: 14px 28px 22px; color: var(--dim); font-size: 14px; display: flex; gap: 8px; align-items: center; }

main > .cc-panel:not(.cc-access) { grid-column: 1; grid-row: 3; }

/* Tablet: Sidebar auf Symbole reduziert (Designsystem), Zugriff unter den Anwendungen */
@media (max-width: 1180px) {
  .cc-app { grid-template-columns: 84px minmax(0, 1fr); }
  .cc-side { padding: 10px 10px 20px; }
  .cc-brand { margin: 0 0 8px; }
  .cc-nav-txt, .cc-nav-state { display: none; }
  .cc-nav-item { justify-content: center; padding: 6px; }
  main { grid-template-columns: minmax(0, 1fr); }
  main > .cc-panel:not(.cc-access), .cc-access { grid-column: 1; grid-row: auto; }
  .cc-claim { display: none; }
}
/* Smartphone: Sidebar als waagerechte Symbolleiste oben */
@media (max-width: 720px) {
  .cc-app { grid-template-columns: minmax(0, 1fr); }
  .cc-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 12px 10px; overflow: visible; }
  .cc-brand { margin: 0 auto 4px; max-width: 320px; }
  .cc-nav { grid-auto-flow: column; grid-auto-columns: 48px; overflow-x: auto; padding-bottom: 4px; }
  .cc-nav-item .cc-ico { width: 40px; height: 40px; }
  .cc-top { padding: 12px 16px 8px; gap: 12px; }
  .cc-title h1 { font-size: 28px; }
  .cc-title p { font-size: 16px; }
  .cc-user { margin-left: 0; width: 100%; }
  .cc-name { flex: 1; }
  main { padding: 4px 16px 20px; }
  .cc-banner { padding: 14px 16px; }
  .cc-banner h2 { font-size: 19px; }
  .cc-banner-ico { width: 44px; height: 44px; }
  .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cc-tile { min-height: 160px; padding: 12px; }
  .cc-tile-name { font-size: 16px; }
  .cc-tile-sub { font-size: 13px; }
  .cc-tag { font-size: 12.5px; padding: 3px 8px; }
  .cc-legend { margin-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
