/* ============================================================
   Icarus Manifest — App-Replika-Styles
   Extrahiert aus tenant.html / modules/* für die Tour-Site.
   Light theme als default (Marketing-Optik), kein Theme-Switch.
   Alle Selektoren auf .app-replica gescoped um Tour-Frame-Konflikte
   zu vermeiden.
   ============================================================ */

.app-replica {
  --bg-base:     #f1f5f9;
  --bg-surface:  #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-hover:    #e2e8f0;
  --border-subtle:  #e2e8f0;
  --border-default: #cbd5e1;
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #64748b;
  --accent-blue:    #0284c7;
  --accent-green:   #059669;
  --accent-amber:   #d97706;
  --accent-red:     #dc2626;

  background: var(--bg-base);
  color: var(--text-primary);
  height: 100%;
  display: grid;
  grid-template-rows: 52px 1fr;
  font-size: 14px;
}

/* ── Topbar ── */
.app-replica .topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}
.app-replica .topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-primary);
}
.app-replica .topbar-brand-mark {
  width: 26px; height: 26px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.app-replica .topbar-spacer { flex: 1; }
.app-replica .topbar-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
}
.app-replica .topbar-btn .material-symbols-rounded { font-size: 16px; }

/* ── Layout ── */
.app-replica .layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100%;
  overflow: hidden;
}

/* ── Sidebar (App-intern) ── */
.app-replica .sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 12px 8px;
  overflow-y: auto;
}
.app-replica .sidebar-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 12px 12px 6px;
}
.app-replica .sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 1px;
}
.app-replica .sidebar-item:hover { background: var(--bg-hover); }
.app-replica .sidebar-item.active {
  background: var(--accent-blue);
  color: #fff;
}
.app-replica .sidebar-item .material-symbols-rounded { font-size: 18px; }

/* ── Main ── */
.app-replica .main {
  background: var(--bg-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Mod-Toolbar (geteilt zwischen Modulen) ── */
.app-replica .mod-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.app-replica .mod-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 10px;
  width: 260px;
  color: var(--text-muted);
}
.app-replica .mod-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  color: var(--text-primary);
  width: 100%;
}
.app-replica .mod-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: 6px;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.app-replica .mod-btn:hover { background: var(--bg-hover); }
.app-replica .mod-btn-primary {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}
.app-replica .mod-btn .material-symbols-rounded { font-size: 16px; }
.app-replica .mod-count {
  font-size: 12px;
  color: var(--text-muted);
}
.app-replica .mod-spacer { flex: 1; }

/* ── View-Tabs ── */
.app-replica .view-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 16px 0;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface);
}
.app-replica .view-tab {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.app-replica .view-tab:hover { color: var(--text-primary); }
.app-replica .view-tab.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

/* ── Tabelle ── */
.app-replica .table-wrap {
  flex: 1;
  overflow: auto;
  padding: 0;
}
.app-replica table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.app-replica .data-table thead {
  background: var(--bg-surface);
  position: sticky;
  top: 0;
}
.app-replica .data-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
}
.app-replica .data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.app-replica .data-table tr:hover td { background: var(--bg-hover); }
.app-replica .data-table tr.selected td { background: #dbeafe; }

/* Status-Badges */
.app-replica .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.app-replica .badge-mitglied { background: #dbeafe; color: #1e3a8a; }
.app-replica .badge-gast     { background: #f1f5f9; color: #475569; }
.app-replica .badge-schueler { background: #fef3c7; color: #92400e; }
.app-replica .badge-success  { background: #d1fae5; color: #065f46; }
.app-replica .badge-warning  { background: #fef3c7; color: #92400e; }
.app-replica .badge-danger   { background: #fee2e2; color: #991b1b; }

/* Mobile-Replika ist für die Tour nicht responsiv —
   der Stage hat festes Layout in Desktop-Größen. */
